Click here to Skip to main content
15,913,055 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Window Position Pin
pasztorpisti19-Aug-13 6:09
pasztorpisti19-Aug-13 6:09 
GeneralRe: Window Position Pin
Richard MacCutchan19-Aug-13 20:33
mveRichard MacCutchan19-Aug-13 20:33 
GeneralRe: Window Position Pin
pasztorpisti20-Aug-13 2:03
pasztorpisti20-Aug-13 2:03 
QuestionRe: Window Position Pin
pasztorpisti18-Aug-13 23:47
pasztorpisti18-Aug-13 23:47 
QuestionSometimes it can not draw out graph Pin
xieeevil18-Aug-13 17:04
xieeevil18-Aug-13 17:04 
AnswerRe: Sometimes it can not draw out graph Pin
Richard MacCutchan18-Aug-13 20:38
mveRichard MacCutchan18-Aug-13 20:38 
GeneralRe: Sometimes it can not draw out graph Pin
Rajesh R Subramanian18-Aug-13 21:57
professionalRajesh R Subramanian18-Aug-13 21:57 
GeneralRe: Sometimes it can not draw out graph Pin
Richard MacCutchan18-Aug-13 22:09
mveRichard MacCutchan18-Aug-13 22:09 
GeneralRe: Sometimes it can not draw out graph Pin
Vaclav_21-Aug-13 4:30
Vaclav_21-Aug-13 4:30 
GeneralRe: Sometimes it can not draw out graph Pin
Richard MacCutchan21-Aug-13 5:09
mveRichard MacCutchan21-Aug-13 5:09 
QuestionWaitForSingleObject Crash Pin
ForNow18-Aug-13 14:09
ForNow18-Aug-13 14:09 
AnswerRe: WaitForSingleObject Crash Pin
Stephen Hewitt18-Aug-13 19:53
Stephen Hewitt18-Aug-13 19:53 
AnswerRe: WaitForSingleObject Crash Pin
Erudite_Eric18-Aug-13 20:07
Erudite_Eric18-Aug-13 20:07 
GeneralRe: WaitForSingleObject Crash Pin
ForNow19-Aug-13 4:45
ForNow19-Aug-13 4:45 
GeneralRe: WaitForSingleObject Crash Pin
Jochen Arndt19-Aug-13 5:14
professionalJochen Arndt19-Aug-13 5:14 
GeneralRe: WaitForSingleObject Crash Pin
ForNow19-Aug-13 5:20
ForNow19-Aug-13 5:20 
GeneralRe: WaitForSingleObject Crash Pin
Stephen Hewitt19-Aug-13 20:32
Stephen Hewitt19-Aug-13 20:32 
AnswerRe: WaitForSingleObject Crash Pin
Richard MacCutchan18-Aug-13 20:35
mveRichard MacCutchan18-Aug-13 20:35 
QuestionWin32 Menu bitmaps Pin
Jonathan Davies17-Aug-13 10:43
Jonathan Davies17-Aug-13 10:43 
GeneralRe: Win32 Menu bitmaps Pin
Richard MacCutchan18-Aug-13 1:25
mveRichard MacCutchan18-Aug-13 1:25 
GeneralRe: Win32 Menu bitmaps Pin
Jonathan Davies18-Aug-13 5:20
Jonathan Davies18-Aug-13 5:20 
AnswerRe: Win32 Menu bitmaps Pin
pasztorpisti18-Aug-13 4:36
pasztorpisti18-Aug-13 4:36 
I've never found a good solution to this problem. Maybe the HBMMENU_CALLBACK of Vista solves this (I havent tried it) but even in that case it would push up the minimum OS version requirement of your program without any particular reason. I've solved this problem a few times by using ownerdraw menu items but in that case you have to take care a lot of things even if you ignore the look and feel of the OS: like font sizes, underlining the hotkeys in menu item text... Customizing menu items and rawing their icons nicely is a pain in the ass.

I would go with ilDrawParams.rgbBk = GetSysColor(COLOR_MENU). It is not perfect but I wouldn't invest time in owner draw items again for a small cosmetic bug.
GeneralRe: Win32 Menu bitmaps Pin
Jonathan Davies18-Aug-13 5:05
Jonathan Davies18-Aug-13 5:05 
GeneralRe: Win32 Menu bitmaps Pin
pasztorpisti18-Aug-13 5:27
pasztorpisti18-Aug-13 5:27 
GeneralRe: Win32 Menu bitmaps Pin
Jonathan Davies18-Aug-13 5:40
Jonathan Davies18-Aug-13 5:40 

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.