Click here to Skip to main content
15,918,404 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: socket buffer problem Pin
fat_boy5-Feb-10 3:11
fat_boy5-Feb-10 3:11 
GeneralRe: socket buffer problem Pin
trioum5-Feb-10 4:35
trioum5-Feb-10 4:35 
GeneralRe: socket buffer problem Pin
fat_boy5-Feb-10 5:23
fat_boy5-Feb-10 5:23 
GeneralRe: socket buffer problem Pin
fat_boy5-Feb-10 5:24
fat_boy5-Feb-10 5:24 
QuestionRSS Feed Pin
kk.tvm3-Feb-10 22:51
kk.tvm3-Feb-10 22:51 
AnswerRe: RSS Feed Pin
CPallini3-Feb-10 23:00
mveCPallini3-Feb-10 23:00 
Questionusing string compare Pin
benjamin yap3-Feb-10 21:59
benjamin yap3-Feb-10 21:59 
AnswerRe: using string compare Pin
Richard MacCutchan3-Feb-10 22:19
mveRichard MacCutchan3-Feb-10 22:19 
GeneralRe: using string compare Pin
benjamin yap3-Feb-10 22:33
benjamin yap3-Feb-10 22:33 
GeneralRe: using string compare Pin
Richard MacCutchan3-Feb-10 23:25
mveRichard MacCutchan3-Feb-10 23:25 
GeneralRe: using string compare Pin
CPallini3-Feb-10 23:59
mveCPallini3-Feb-10 23:59 
GeneralRe: using string compare Pin
Richard MacCutchan4-Feb-10 0:04
mveRichard MacCutchan4-Feb-10 0:04 
Questionhiding unused menus using MFC Pin
Syama Sundar3-Feb-10 20:28
Syama Sundar3-Feb-10 20:28 
AnswerRe: hiding unused menus using MFC Pin
Madhu Nair3-Feb-10 21:21
Madhu Nair3-Feb-10 21:21 
GeneralRe: hiding unused menus using MFC Pin
Syama Sundar3-Feb-10 21:31
Syama Sundar3-Feb-10 21:31 
GeneralRe: hiding unused menus using MFC Pin
Alain Rist3-Feb-10 21:38
Alain Rist3-Feb-10 21:38 
AnswerRe: hiding unused menus using MFC Pin
Madhu Nair3-Feb-10 21:34
Madhu Nair3-Feb-10 21:34 
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

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.