Click here to Skip to main content
15,921,371 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Sending text to an edit box Pin
Christian Graus14-Jan-02 19:44
protectorChristian Graus14-Jan-02 19:44 
GeneralRe: Sending text to an edit box Pin
Nish Nishant14-Jan-02 19:56
sitebuilderNish Nishant14-Jan-02 19:56 
GeneralCImageList displayed in16 colors Pin
Neville Franks14-Jan-02 17:33
Neville Franks14-Jan-02 17:33 
GeneralRe: CImageList displayed in16 colors Pin
Christian Graus14-Jan-02 18:31
protectorChristian Graus14-Jan-02 18:31 
GeneralRe: CImageList displayed in16 colors Pin
Neville Franks14-Jan-02 18:46
Neville Franks14-Jan-02 18:46 
GeneralRe: CImageList displayed in16 colors Pin
Christian Graus14-Jan-02 19:42
protectorChristian Graus14-Jan-02 19:42 
GeneralRe: CImageList displayed in16 colors Pin
Neville Franks14-Jan-02 20:00
Neville Franks14-Jan-02 20:00 
GeneralRe: CImageList displayed in16 colors Pin
Christian Graus15-Jan-02 0:56
protectorChristian Graus15-Jan-02 0:56 
I'm sorry it took me so long to reply - would you believe I was waiting for my daughter to get off the PC, and I feel asleep ? I slept from 6:30 pm to 10:30 pm. I've been sick this week....

Anyhow, I remembered having the same problem, and sure enough, if I added a 24 it mapage to my resources, and created a CImageList from it, I got a 16 color image. To get it to display in 24 bit, I needed to create the image list and the bitmap seperately, then pass in the bitmap, like this:

CImageList il;
il.Create(45, 40, ILC_COLORDDB|ILC_MASK, 8, 1);
CBitmap bm;
bm.LoadBitmap(IDB_BITMAP1);
il.Add(&bm, RGB(0,0,0));
il.Draw(pDC, 0, CPoint(0,0), ILD_NORMAL);


voila - 24 color image drawn to the screen from an image list.


Christian

I have come to clean zee pooollll. - Michael Martin Dec 30, 2001

Sonork ID 100.10002:MeanManOz
I live in Bob's HungOut now

GeneralRe: CImageList displayed in16 colors Pin
Neville Franks16-Jan-02 11:06
Neville Franks16-Jan-02 11:06 
GeneralRe: CImageList displayed in16 colors Pin
Christian Graus16-Jan-02 11:13
protectorChristian Graus16-Jan-02 11:13 
QuestionHow can i change thumb's rect? Pin
Fang Xia14-Jan-02 15:34
Fang Xia14-Jan-02 15:34 
GeneralClass problems Pin
Matt Newman14-Jan-02 14:39
Matt Newman14-Jan-02 14:39 
GeneralRe: Class problems Pin
Nish Nishant14-Jan-02 20:00
sitebuilderNish Nishant14-Jan-02 20:00 
GeneralRe: Class problems Pin
Matt Newman15-Jan-02 14:54
Matt Newman15-Jan-02 14:54 
GeneralInteresring Source Safe Problem Pin
Wolfram Steinke14-Jan-02 13:05
Wolfram Steinke14-Jan-02 13:05 
Generalconverting decimal to hexadecimal Pin
SAK14-Jan-02 11:50
SAK14-Jan-02 11:50 
GeneralRe: converting decimal to hexadecimal Pin
Christian Graus14-Jan-02 11:53
protectorChristian Graus14-Jan-02 11:53 
GeneralRe: converting decimal to hexadecimal Pin
SAK14-Jan-02 14:23
SAK14-Jan-02 14:23 
GeneralRe: converting decimal to hexadecimal Pin
Jon Hulatt14-Jan-02 22:39
Jon Hulatt14-Jan-02 22:39 
GeneralRe: converting decimal to hexadecimal Pin
Christian Graus15-Jan-02 1:10
protectorChristian Graus15-Jan-02 1:10 
QuestionContext Help to MDI window?? Pin
Giles14-Jan-02 9:27
Giles14-Jan-02 9:27 
AnswerRe: Context Help to MDI window?? Pin
Michael Dunn14-Jan-02 10:50
sitebuilderMichael Dunn14-Jan-02 10:50 
AnswerRe: Context Help to MDI window?? Pin
Roger Allen15-Jan-02 1:05
Roger Allen15-Jan-02 1:05 
GeneralRe: Context Help to MDI window?? Pin
Giles15-Jan-02 7:37
Giles15-Jan-02 7:37 
QuestionDebugging an Addin in Visual Studio? Pin
Phil Iott14-Jan-02 9:23
Phil Iott14-Jan-02 9:23 

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.