|
-
April 2nd, 2009, 07:44 AM
#1
[RESOLVED] File Icon to Picture Control
im using this code to load the icon of a file , how can i display this icon into a Picture Control?
(code from http://weseetips.com/2008/06/03/how-...con-of-a-file/)
Code:
CString FilePath = _T("C:\\FooBar.zip");
// Get the file icon.
SHFILEINFO FileInfo = { 0 };
SHGetFileInfo( FilePath,
0,
&FileInfo,
sizeof( FileInfo ),
SHGFI_ICON );
// FileInfo.hIcon contains Icon handle.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|