Click here to Skip to main content
15,912,977 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralAccessing to parent view Pin
doctorpi19-May-05 21:02
doctorpi19-May-05 21:02 
GeneralRe: Accessing to parent view Pin
GDavy19-May-05 21:12
GDavy19-May-05 21:12 
GeneralRe: Accessing to parent view Pin
doctorpi19-May-05 22:26
doctorpi19-May-05 22:26 
GeneralRe: Accessing to parent view Pin
GDavy19-May-05 22:29
GDavy19-May-05 22:29 
GeneralRe: Accessing to parent view Pin
Tom Archer20-May-05 17:08
Tom Archer20-May-05 17:08 
GeneralC++ Client for Microsoft Excel Pin
AnuradhaCpp19-May-05 20:11
AnuradhaCpp19-May-05 20:11 
GeneralRe: C++ Client for Microsoft Excel Pin
David Crow20-May-05 2:04
David Crow20-May-05 2:04 
QuestionHow to show the Application's icon in the Local disk Pin
wwwht19-May-05 20:06
wwwht19-May-05 20:06 
I am writing a project of ListView . I want to show the Application's Icon in
the Local disk when the ListView initializing.
Although I use the follow way:
CImageList m_img;
SHFILEINFO sfi;
::SHGetFileInfo(_T("C:\Program file\"),//I want to read all the
//Application's ICON under the directory
FILE_ATTRIBUTE_NORMAL,
&sfi,
sizeof(sfi),
SHGFI_DISPLAYNAME | SHGFI_ICON);
m_img.create(32,32,TRUE | COLOR8,1,100);
m_img.Add(sfi.hIcon);
GetListCtrl().SetImageList(&m_img);

but I wonder that why the ListView can not show the Application's icon?
Do you know this is why?
Can you tell me if you me ?
Or Give me a example if you have similar project.
Thank you very much!
GeneralCFile::UnlockRange () exception problem Pin
NeoHobbit19-May-05 19:44
NeoHobbit19-May-05 19:44 
GeneralCommunication Pin
usmanmir19-May-05 18:43
usmanmir19-May-05 18:43 
GeneralRe: Communication Pin
Christian Graus19-May-05 18:49
protectorChristian Graus19-May-05 18:49 
GeneralRe: Communication Pin
ThatsAlok19-May-05 19:01
ThatsAlok19-May-05 19:01 
GeneralRe: Communication Pin
Michael Dunn19-May-05 19:58
sitebuilderMichael Dunn19-May-05 19:58 
GeneralRe: Communication Pin
ThatsAlok19-May-05 20:03
ThatsAlok19-May-05 20:03 
GeneralRe: Communication Pin
usmanmir19-May-05 19:02
usmanmir19-May-05 19:02 
GeneralRe: Communication Pin
Christian Graus19-May-05 19:05
protectorChristian Graus19-May-05 19:05 
GeneralRe: Communication Pin
usmanmir19-May-05 19:14
usmanmir19-May-05 19:14 
GeneralRe: Communication Pin
Christian Graus19-May-05 19:19
protectorChristian Graus19-May-05 19:19 
GeneralRe: Communication Pin
RChin20-May-05 1:09
RChin20-May-05 1:09 
GeneralRe: Communication Pin
CodeBeetle26-May-05 7:24
CodeBeetle26-May-05 7:24 
QuestionHow to refresh Explorer window after Registry key changed? Pin
EastDragon19-May-05 17:19
EastDragon19-May-05 17:19 
AnswerRe: How to refresh Explorer window after Registry key changed? Pin
Michael Dunn19-May-05 20:02
sitebuilderMichael Dunn19-May-05 20:02 
GeneralVisual C++ 6.0 Editor Paste Problem Pin
gjr19-May-05 16:42
gjr19-May-05 16:42 
GeneralRe: Visual C++ 6.0 Editor Paste Problem Pin
Tom Archer20-May-05 17:09
Tom Archer20-May-05 17:09 
GeneralRe: Visual C++ 6.0 Editor Paste Problem Pin
gjr20-May-05 19:03
gjr20-May-05 19:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.