Click here to Skip to main content
15,915,319 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Anybody who knows a tools for downloads site of CGI? Pin
LeighSword14-Jan-02 13:23
LeighSword14-Jan-02 13:23 
AnswerRe: Anybody who knows a tools for downloads site of CGI? Pin
Todd Smith14-Jan-02 14:13
Todd Smith14-Jan-02 14:13 
GeneralCBitmap - optimization problem Pin
Giulio10-Jan-02 2:06
Giulio10-Jan-02 2:06 
GeneralRe: CBitmap - optimization problem Pin
Christian Graus10-Jan-02 10:15
protectorChristian Graus10-Jan-02 10:15 
Generalfatal errpr LNK1104: cannot open file "ipl.lib" Pin
hierro10-Jan-02 1:24
hierro10-Jan-02 1:24 
GeneralRe: fatal errpr LNK1104: cannot open file "ipl.lib" Pin
Jon Hulatt10-Jan-02 2:06
Jon Hulatt10-Jan-02 2:06 
QuestionHow do I get the window to the top of the screen. Pin
VanHlebar10-Jan-02 1:19
VanHlebar10-Jan-02 1:19 
GeneralCPictureHolder and CImageList Pin
Paul Selormey10-Jan-02 0:44
Paul Selormey10-Jan-02 0:44 
Hello All,
I am having some confusing problems with the above classes and need help. I have a COM interface that allows the user to build image list from several sources and different ways.
However, the images are finally stored in CImageList object. Now, I want to make it easier for the users to access any of the image items and render them. I provided the IPictureDisp interface (StdPicture in VB).
When the user request for an image item passing in the index, I convert the image to icon (CImageList::ExtractIcon), create CPictureHolder object and pass the IPictureDisp interface.

The problem is when the picture is rendered on the VB picture box, it turns to be black (cannot make up the image). However, if I load icons directly in the CPictureHolder and pass them to the VB, it works correctly.
What could be the difference between icons from CImageList and those loaded with ExtracIconsEx from files?

Best regards,
Paul.


Paul Selormey, Bsc (Elect Eng), MSc (Mobile Communication) is currently Windows open source developer in Japan, and open for programming contract anywhere!
GeneralA CFileDialog Question - selecting multiple files Pin
Dor9-Jan-02 23:58
Dor9-Jan-02 23:58 
GeneralRe: A CFileDialog Question - selecting multiple files Pin
Fredrik Skog10-Jan-02 1:34
Fredrik Skog10-Jan-02 1:34 
GeneralRe: A CFileDialog Question - selecting multiple files Pin
PJ Arends10-Jan-02 10:29
professionalPJ Arends10-Jan-02 10:29 
GeneralRe: A CFileDialog Question - selecting multiple files Pin
Fredrik Skog10-Jan-02 20:56
Fredrik Skog10-Jan-02 20:56 
GeneralRe: A CFileDialog Question - selecting multiple files Pin
PJ Arends11-Jan-02 6:13
professionalPJ Arends11-Jan-02 6:13 
GeneralReload Icon when Explorer Crashes Pin
Jason Hooper9-Jan-02 23:30
Jason Hooper9-Jan-02 23:30 
GeneralRe: Reload Icon when Explorer Crashes Pin
Nish Nishant10-Jan-02 0:31
sitebuilderNish Nishant10-Jan-02 0:31 
GeneralRe: Reload Icon when Explorer Crashes Pin
Bill Leibold10-Jan-02 7:53
Bill Leibold10-Jan-02 7:53 
GeneralRe: Reload Icon when Explorer Crashes Pin
James R. Twine10-Jan-02 8:47
James R. Twine10-Jan-02 8:47 
GeneralRe: Reload Icon when Explorer Crashes Pin
Jon Hulatt10-Jan-02 0:57
Jon Hulatt10-Jan-02 0:57 
GeneralRe: Reload Icon when Explorer Crashes Pin
James R. Twine10-Jan-02 4:49
James R. Twine10-Jan-02 4:49 
GeneralRe: Reload Icon when Explorer Crashes Pin
Jason Hooper10-Jan-02 7:14
Jason Hooper10-Jan-02 7:14 
GeneralRe: Reload Icon when Explorer Crashes Pin
James R. Twine10-Jan-02 8:13
James R. Twine10-Jan-02 8:13 
GeneralRe: Reload Icon when Explorer Crashes Pin
Michael Dunn10-Jan-02 7:48
sitebuilderMichael Dunn10-Jan-02 7:48 
GeneralRe: Reload Icon when Explorer Crashes Pin
James R. Twine10-Jan-02 8:20
James R. Twine10-Jan-02 8:20 
Questionhow to use scrollbar? Pin
AnonymousBabe@usa.net9-Jan-02 22:51
AnonymousBabe@usa.net9-Jan-02 22:51 
GeneralProblem with XP graphical interface Pin
limax9-Jan-02 22:30
limax9-Jan-02 22:30 

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.