Click here to Skip to main content
15,895,011 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: hiding unused menus using MFC Pin
Syama Sundar3-Feb-10 22:17
Syama Sundar3-Feb-10 22:17 
GeneralRe: hiding unused menus using MFC Pin
sthalasayanam4-Feb-10 2:41
sthalasayanam4-Feb-10 2:41 
AnswerRe: hiding unused menus using MFC Pin
Maximilien4-Feb-10 3:05
Maximilien4-Feb-10 3:05 
GeneralRe: hiding unused menus using MFC Pin
Syama Sundar4-Feb-10 19:22
Syama Sundar4-Feb-10 19:22 
QuestionProblem on maximizing child window of a MDI application. Pin
Member 41861983-Feb-10 20:06
Member 41861983-Feb-10 20:06 
AnswerRe: Problem on maximizing child window of a MDI application. Pin
Nelek3-Feb-10 20:33
protectorNelek3-Feb-10 20:33 
AnswerRe: Problem on maximizing child window of a MDI application. [modified] Pin
Member 41861983-Feb-10 20:46
Member 41861983-Feb-10 20:46 
QuestionMenu DrawItem issue when Windows 7 workstation is locked. Pin
Maxwell Chen3-Feb-10 19:51
Maxwell Chen3-Feb-10 19:51 
I use CNewMenu V1.23 to pop up a context menu. It is working fine under most of situations, except the situation when the screen is locked by winlogon.

The symptom is that it pops up only a black rectangle, as the screenshot in below link.
Screenshot[^]

The step to reproduce is:
1) Keep the application window open.
2) Press Ctrl-Alt-Del, and choose "Lock this computer".
3) Have the application pop up the context menu. In my case, it is the hardware signal input as the trigger.
4) Input Windows password to unlock the screen.
5) The popup menu is black (blank).


CNewMenu::DrawItem was only invoked when the menu was popping up. And the parent window (the owner of the menu) is still stuck by the call CMenu::TrackPopupMenu. There is no signal to let the menu repaint / redraw at the moment the screen is being unlocked.

Is there any method to cause the menu to update?

  Maxwell Chen

AnswerRe: Menu DrawItem issue when Windows 7 workstation is locked. Pin
Stuart Dootson3-Feb-10 20:30
professionalStuart Dootson3-Feb-10 20:30 
GeneralRe: Menu DrawItem issue when Windows 7 workstation is locked. [modified] Pin
Maxwell Chen3-Feb-10 20:40
Maxwell Chen3-Feb-10 20:40 
GeneralRe: Menu DrawItem issue when Windows 7 workstation is locked. Pin
Stuart Dootson3-Feb-10 21:00
professionalStuart Dootson3-Feb-10 21:00 
GeneralRe: Menu DrawItem issue when Windows 7 workstation is locked. Pin
Maxwell Chen3-Feb-10 21:22
Maxwell Chen3-Feb-10 21:22 
GeneralRe: Menu DrawItem issue when Windows 7 workstation is locked. Pin
Stuart Dootson3-Feb-10 21:36
professionalStuart Dootson3-Feb-10 21:36 
GeneralRe: Menu DrawItem issue when Windows 7 workstation is locked. Pin
Maxwell Chen3-Feb-10 21:38
Maxwell Chen3-Feb-10 21:38 
QuestionOracle connection Pin
MsmVc3-Feb-10 18:05
MsmVc3-Feb-10 18:05 
AnswerRe: Oracle connection Pin
«_Superman_»3-Feb-10 18:11
professional«_Superman_»3-Feb-10 18:11 
GeneralRe: Oracle connection Pin
MsmVc3-Feb-10 18:19
MsmVc3-Feb-10 18:19 
GeneralRe: Oracle connection Pin
Garth J Lancaster3-Feb-10 22:20
professionalGarth J Lancaster3-Feb-10 22:20 
QuestionProfiling Code in Studio 2008 HEre is a Wnderful REsource Pin
MicroImaging3-Feb-10 9:53
MicroImaging3-Feb-10 9:53 
Questionnewbie cryptography question Pin
fordsport3-Feb-10 8:59
fordsport3-Feb-10 8:59 
AnswerRe: newbie cryptography question Pin
KingsGambit3-Feb-10 20:25
KingsGambit3-Feb-10 20:25 
GeneralRe: newbie cryptography question Pin
fordsport4-Feb-10 3:22
fordsport4-Feb-10 3:22 
QuestionURL Monitor Pin
Member 68648393-Feb-10 7:38
Member 68648393-Feb-10 7:38 
QuestionRe: URL Monitor Pin
CPallini3-Feb-10 9:04
mveCPallini3-Feb-10 9:04 
AnswerRe: URL Monitor Pin
Member 68648393-Feb-10 9:15
Member 68648393-Feb-10 9:15 

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.