Click here to Skip to main content
16,006,382 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to know when a window is shown? Pin
7-Aug-01 1:19
suss7-Aug-01 1:19 
AnswerRe: How to know when a window is shown? Pin
Tomasz Sowinski7-Aug-01 1:58
Tomasz Sowinski7-Aug-01 1:58 
GeneralDisabled Images Pin
Derek Lakin6-Aug-01 23:58
Derek Lakin6-Aug-01 23:58 
GeneralRe: Disabled Images Pin
Tomasz Sowinski7-Aug-01 0:37
Tomasz Sowinski7-Aug-01 0:37 
GeneralCopy into a bitmap Pin
Derek Lakin7-Aug-01 3:31
Derek Lakin7-Aug-01 3:31 
GeneralRe: Copy into a bitmap Pin
Tomasz Sowinski7-Aug-01 3:43
Tomasz Sowinski7-Aug-01 3:43 
GeneralRe: Copy into a bitmap Pin
Derek Lakin7-Aug-01 8:58
Derek Lakin7-Aug-01 8:58 
GeneralRe: Copy into a bitmap Pin
Tomasz Sowinski7-Aug-01 9:23
Tomasz Sowinski7-Aug-01 9:23 
Two solutions are possible:

1) you can use ImageList_GetImageInfo or CImageList::GetImageInfo. This gives you underlying HBITMAP (all images in the list stored on single bitmap), which you can pass to DrawState. You should perform this on a copy of original imagelist, but that's an easy part - just use ImageList_Copy or its MFC counterpart.

2) you have icon/bitmap handle in SetButtonXXX methods. For each 'source' image create appropriate 'disabled' one, then add this to second imglist.


Tomasz Sowinski -- http://www.shooltz.com
GeneralRe: Copy into a bitmap Pin
Derek Lakin8-Aug-01 2:08
Derek Lakin8-Aug-01 2:08 
GeneralRe: Copy into a bitmap Pin
Tomasz Sowinski8-Aug-01 2:25
Tomasz Sowinski8-Aug-01 2:25 
GeneralRe: Copy into a bitmap Pin
Derek Lakin9-Aug-01 1:29
Derek Lakin9-Aug-01 1:29 
Generalsql connect Pin
6-Aug-01 23:38
suss6-Aug-01 23:38 
GeneralRe: sql connect Pin
7-Aug-01 0:39
suss7-Aug-01 0:39 
GeneralUrgent - read MAC address ?!?!?!?! Pin
6-Aug-01 23:08
suss6-Aug-01 23:08 
GeneralRe: Urgent - read MAC address ?!?!?!?! Pin
Ryszard Krakowiak7-Aug-01 2:40
Ryszard Krakowiak7-Aug-01 2:40 
GeneralRe: Re: Urgent - read MAC address ?!?!?!?! Pin
7-Aug-01 6:24
suss7-Aug-01 6:24 
GeneralCustom attribute to the file Pin
vikram_barate6-Aug-01 23:00
vikram_barate6-Aug-01 23:00 
GeneralRe: Custom attribute to the file Pin
Tomasz Sowinski7-Aug-01 0:44
Tomasz Sowinski7-Aug-01 0:44 
GeneralResour editor Pin
NBee6-Aug-01 22:59
NBee6-Aug-01 22:59 
GeneralRe: Resour editor Pin
Derek Waters8-Aug-01 15:05
Derek Waters8-Aug-01 15:05 
GeneralCEdit and Enter Pin
Arjan Schouten6-Aug-01 22:59
Arjan Schouten6-Aug-01 22:59 
GeneralTimers Pin
6-Aug-01 22:51
suss6-Aug-01 22:51 
GeneralRe: Timers Pin
Tomasz Sowinski7-Aug-01 1:16
Tomasz Sowinski7-Aug-01 1:16 
Questionhow to make debug more accurate Pin
Gérald Mercet6-Aug-01 21:47
Gérald Mercet6-Aug-01 21:47 
AnswerRe: how to make debug more accurate Pin
Tomasz Sowinski7-Aug-01 0:49
Tomasz Sowinski7-Aug-01 0:49 

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.