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

C / C++ / MFC

 
GeneralRe: Custom Calendar Control Pin
alex.barylski28-Oct-02 12:13
alex.barylski28-Oct-02 12:13 
GeneralPlease, help... STUCK Pin
Xeena28-Oct-02 6:44
Xeena28-Oct-02 6:44 
GeneralRe: Please, help... STUCK Pin
ian mariano28-Oct-02 17:59
ian mariano28-Oct-02 17:59 
GeneralOnKeyDown().. How to determine simultaneous key presses. Pin
clintsinger28-Oct-02 6:19
clintsinger28-Oct-02 6:19 
GeneralRe: OnKeyDown().. How to determine simultaneous key presses. Pin
Paul M Watt28-Oct-02 6:48
mentorPaul M Watt28-Oct-02 6:48 
GeneralRe: OnKeyDown().. How to determine simultaneous key presses. Pin
Chris Richardson28-Oct-02 14:20
Chris Richardson28-Oct-02 14:20 
GeneralCListCtrl image format Pin
rrrado28-Oct-02 5:31
rrrado28-Oct-02 5:31 
GeneralRe: CListCtrl image format Pin
Shog928-Oct-02 16:52
sitebuilderShog928-Oct-02 16:52 
1) Make sure you're not editing the bitmap in Visual Studio; it won't work for 32bit images, and generally chokes badly on anything better than 4-bit color...

2) The normal MFC code to load a bitmap from resources doesn't work on high-color images. You can use either of the following techniques to get a bitmap from resources into your image list (we'll assume the resource ID is IDB_MY_IMAGES, and you want it split into 6 16x16 pixel images with no transparency):
CImageList MyImageList;
MyImageList.Attach(ImageList_LoadImage(AfxGetResourceHandle(), MAKEINTRESOURCE(IDB_MY_IMAGES), 16,0, 
   CLR_NONE, IMAGE_BITMAP, ILC_COLOR32));

or:
CImageList MyImageList;
MyImageList.Create(16,16,ILC_COLOR32,0,6);
CBitmap bmpTmp;
bmpTmp.Attach(::LoadImage(AfxGetResourceHandle(), MAKEINTRESOURCE(IDB_MY_IMAGES), 
   IMAGE_BITMAP, 0, 0, LR_CREATEDIBSECTION));
MyImageList.Add(&bmpTmp, NULL);



Shog9
------

So they took me down to the gallows
And this boy, he said to me:
"Why do you smile, when the rope's around your neck?"
I said, "I tell you boy, when i get back..."

GeneralRe: CListCtrl image format Pin
rrrado28-Oct-02 21:20
rrrado28-Oct-02 21:20 
QuestionIs pipe an effiecient way for communication between threads? Pin
Wenrich28-Oct-02 4:38
Wenrich28-Oct-02 4:38 
AnswerRe: Is pipe an effiecient way for communication between threads? Pin
Carlos Antollini28-Oct-02 4:45
Carlos Antollini28-Oct-02 4:45 
AnswerRe: Is pipe an effiecient way for communication between threads? Pin
Joe Woodbury28-Oct-02 6:01
professionalJoe Woodbury28-Oct-02 6:01 
AnswerRe: Is pipe an effiecient way for communication between threads? Pin
valikac28-Oct-02 11:49
valikac28-Oct-02 11:49 
GeneralMDI Application Pin
act_x28-Oct-02 4:02
act_x28-Oct-02 4:02 
GeneralRe: MDI Application Pin
Alexander Wiseman28-Oct-02 4:54
Alexander Wiseman28-Oct-02 4:54 
GeneralComplex class question. Pin
Michael Liu28-Oct-02 3:43
Michael Liu28-Oct-02 3:43 
GeneralRe: Complex class question. Pin
Paul M Watt28-Oct-02 6:51
mentorPaul M Watt28-Oct-02 6:51 
GeneralHelppppppppppppppppp Pin
Renjith Ramachandran28-Oct-02 3:28
Renjith Ramachandran28-Oct-02 3:28 
GeneralRe: Helppppppppppppppppp Pin
AOL-user28-Oct-02 8:45
sussAOL-user28-Oct-02 8:45 
GeneralSelect directory in CFileDialog Pin
Ola Carlsson28-Oct-02 3:16
Ola Carlsson28-Oct-02 3:16 
GeneralRe: Select directory in CFileDialog Pin
Navin28-Oct-02 3:52
Navin28-Oct-02 3:52 
Generalhtml help question Pin
ns28-Oct-02 2:38
ns28-Oct-02 2:38 
GeneralRe: html help question Pin
567890123428-Oct-02 3:28
567890123428-Oct-02 3:28 
GeneralThanks! Pin
ns28-Oct-02 3:51
ns28-Oct-02 3:51 
GeneralRe: Thanks! Pin
ooosawaddee328-Oct-02 8:25
ooosawaddee328-Oct-02 8:25 

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.