Click here to Skip to main content
15,911,786 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Error In Multiply Large matrices From Strassen Algorithm Pin
_AnsHUMAN_ 4-Dec-08 16:47
_AnsHUMAN_ 4-Dec-08 16:47 
QuestionSet Icon Pin
MsmVc3-Dec-08 23:51
MsmVc3-Dec-08 23:51 
AnswerRe: Set Icon Pin
Code-o-mat4-Dec-08 0:15
Code-o-mat4-Dec-08 0:15 
GeneralRe: Set Icon Pin
MsmVc4-Dec-08 17:18
MsmVc4-Dec-08 17:18 
QuestionMenuBar and ToolBar background color Pin
karhong3-Dec-08 23:09
karhong3-Dec-08 23:09 
AnswerRe: MenuBar and ToolBar background color Pin
Code-o-mat4-Dec-08 0:38
Code-o-mat4-Dec-08 0:38 
GeneralRe: MenuBar and ToolBar background color Pin
karhong4-Dec-08 16:52
karhong4-Dec-08 16:52 
GeneralRe: MenuBar and ToolBar background color Pin
Code-o-mat4-Dec-08 21:59
Code-o-mat4-Dec-08 21:59 
Well, sadly, no, i have no links, if i had one i would have posted it the first time, what i thought of is that you could try drawing the menubar yourself similarry to how you draw the menu items, it can be tricky but i think it can be done. Sorry, i have no better idea right now. If you could determine the menubar area you could in the call to WM_NCPAINT exclude this area from the update region (you get the update region as a parameter with WM_NCPAINT (i think it can also be NULL which means everything needs to be repainted)), call __super::OnNcPaint, this should leave the menubar area unpainted (but draw the rest, like borders, caption bar, ...) and then try to paint it yourself using GetMenuItemRect() to determine where the menu items are, however, this might prove problematic (i don't know how you can draw a menu item which is selected, etc...) and it is also probably reinventing the wheel...but you said you didn't find anything out there to do what you want. Or how about doing this: catch he WM_NCPAINT, determine the menu bar region, paint it to your chosen color, and then let WM_NCPAINT be handled by super, maybe it doesn't erase the menubar background in that call just draws the items over what is there. Maybe worth a try...

> The problem with computers is that they do what you tell them to do and not what you want them to do. <

AnswerRe: MenuBar and ToolBar background color Pin
karhong8-Dec-08 22:15
karhong8-Dec-08 22:15 
QuestionKnow architecture of remote host (32bit or 64bit) Pin
Roshan Nikam3-Dec-08 20:55
Roshan Nikam3-Dec-08 20:55 
AnswerRe: Know architecture of remote host (32bit or 64bit) Pin
KarstenK3-Dec-08 21:12
mveKarstenK3-Dec-08 21:12 
AnswerRe: Know architecture of remote host (32bit or 64bit) Pin
Cedric Moonen3-Dec-08 21:24
Cedric Moonen3-Dec-08 21:24 
GeneralRe: Know architecture of remote host (32bit or 64bit) Pin
Roshan Nikam3-Dec-08 21:47
Roshan Nikam3-Dec-08 21:47 
AnswerRe: Know architecture of remote host (32bit or 64bit) Pin
Iain Clarke, Warrior Programmer4-Dec-08 10:20
Iain Clarke, Warrior Programmer4-Dec-08 10:20 
Questionnot resonding /slow to response any click event Pin
anilaabc3-Dec-08 20:45
anilaabc3-Dec-08 20:45 
AnswerRe: not resonding /slow to response any click event Pin
Cedric Moonen3-Dec-08 20:58
Cedric Moonen3-Dec-08 20:58 
GeneralRe: not resonding /slow to response any click event Pin
anilaabc3-Dec-08 21:13
anilaabc3-Dec-08 21:13 
GeneralRe: not resonding /slow to response any click event Pin
Cedric Moonen3-Dec-08 21:22
Cedric Moonen3-Dec-08 21:22 
GeneralRe: not resonding /slow to response any click event Pin
anilaabc3-Dec-08 21:35
anilaabc3-Dec-08 21:35 
GeneralRe: not resonding /slow to response any click event [modified] Pin
Code-o-mat4-Dec-08 0:51
Code-o-mat4-Dec-08 0:51 
AnswerRe: not resonding /slow to response any click event Pin
KarstenK3-Dec-08 21:10
mveKarstenK3-Dec-08 21:10 
GeneralRe: not resonding /slow to response any click event Pin
anilaabc3-Dec-08 21:19
anilaabc3-Dec-08 21:19 
QuestionShow in Taskbar Pin
NewVC++3-Dec-08 20:45
NewVC++3-Dec-08 20:45 
AnswerRe: Show in Taskbar Pin
Nishad S3-Dec-08 21:29
Nishad S3-Dec-08 21:29 
AnswerRe: Show in Taskbar Pin
Code-o-mat3-Dec-08 21:32
Code-o-mat3-Dec-08 21:32 

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.