Click here to Skip to main content
15,896,348 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CListView popup filter Pin
mao7819-Jan-09 5:05
mao7819-Jan-09 5:05 
GeneralDrawThemeIcon Pin
Jörgen Sigvardsson26-Aug-04 5:00
Jörgen Sigvardsson26-Aug-04 5:00 
GeneralRe: DrawThemeIcon Pin
JBoschen26-Aug-04 8:06
JBoschen26-Aug-04 8:06 
GeneralRe: DrawThemeIcon Pin
Jörgen Sigvardsson26-Aug-04 9:25
Jörgen Sigvardsson26-Aug-04 9:25 
GeneralRe: DrawThemeIcon Pin
JBoschen26-Aug-04 9:28
JBoschen26-Aug-04 9:28 
GeneralRe: DrawThemeIcon Pin
Jörgen Sigvardsson26-Aug-04 9:32
Jörgen Sigvardsson26-Aug-04 9:32 
GeneralRe: DrawThemeIcon Pin
JBoschen26-Aug-04 9:46
JBoschen26-Aug-04 9:46 
GeneralRe: DrawThemeIcon Pin
Jörgen Sigvardsson26-Aug-04 9:53
Jörgen Sigvardsson26-Aug-04 9:53 
JBoschen wrote:
WinXP does mentions support for drawing icons in grayscale, but AFAK it's not supported. Other than that, GDI+ maybe?

I found traces of such support in tmscheme.h (or was it tmschema.h?). I found a property called ...SATURATION..., which was documented with a comment mentioning icons. I did not find any corresponding parts/states though for actually drawing the bitmap. The function DrawThemeIcon(), just draws the image as if I had used ImageList_Draw[ex]().

I did find a function in an article/project written by PJ Arends here on CP which has a function to grayscale bitmaps. I guess I could have a look at it tomorrow.

It's a damn shame I'm so clueless when it comes to image/color theory and advanced GDI. I guess I'll have to order a Petzold book.

--
...Coca Cola, sometimes war...
GeneralRe: DrawThemeIcon Pin
cmk26-Aug-04 11:51
cmk26-Aug-04 11:51 
GeneralRe: DrawThemeIcon Pin
Jörgen Sigvardsson26-Aug-04 12:02
Jörgen Sigvardsson26-Aug-04 12:02 
GeneralRe: DrawThemeIcon Pin
cmk26-Aug-04 14:43
cmk26-Aug-04 14:43 
GeneralRe: DrawThemeIcon Pin
Jörgen Sigvardsson27-Aug-04 3:54
Jörgen Sigvardsson27-Aug-04 3:54 
GeneralRe: DrawThemeIcon Pin
KaЯl29-Aug-04 22:28
KaЯl29-Aug-04 22:28 
GeneralNo hWnd for Class derived from CEdit Pin
BlackDice26-Aug-04 4:43
BlackDice26-Aug-04 4:43 
GeneralRe: No hWnd for Class derived from CEdit Pin
KaЯl27-Aug-04 4:57
KaЯl27-Aug-04 4:57 
GeneralRe: No hWnd for Class derived from CEdit Pin
BlackDice27-Aug-04 5:41
BlackDice27-Aug-04 5:41 
GeneralRe: No hWnd for Class derived from CEdit Pin
KaЯl27-Aug-04 6:02
KaЯl27-Aug-04 6:02 
GeneralRe: No hWnd for Class derived from CEdit Pin
BlackDice27-Aug-04 6:24
BlackDice27-Aug-04 6:24 
GeneralRe: No hWnd for Class derived from CEdit Pin
KaЯl27-Aug-04 6:47
KaЯl27-Aug-04 6:47 
GeneralRe: No hWnd for Class derived from CEdit Pin
BlackDice27-Aug-04 7:51
BlackDice27-Aug-04 7:51 
Questionmfc newbie, when do i paint? Pin
evilslope26-Aug-04 4:19
evilslope26-Aug-04 4:19 
AnswerRe: mfc newbie, when do i paint? Pin
Maximilien26-Aug-04 4:39
Maximilien26-Aug-04 4:39 
AnswerRe: mfc newbie, when do i paint? Pin
palbano26-Aug-04 5:02
palbano26-Aug-04 5:02 
GeneralRe: mfc newbie, when do i paint? Pin
jmkhael26-Aug-04 6:04
jmkhael26-Aug-04 6:04 
AnswerRe: mfc newbie, when do i paint? Pin
Michael Dunn26-Aug-04 8:59
sitebuilderMichael Dunn26-Aug-04 8:59 

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.