Click here to Skip to main content
15,867,453 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow I can make my MFC dialoge application workable online? Pin
moh.hijjawi30-Mar-10 7:55
moh.hijjawi30-Mar-10 7:55 
AnswerRe: How I can make my MFC dialoge application workable online? Pin
LunaticFringe30-Mar-10 9:08
LunaticFringe30-Mar-10 9:08 
GeneralRe: How I can make my MFC dialoge application workable online? Pin
moh.hijjawi30-Mar-10 9:28
moh.hijjawi30-Mar-10 9:28 
GeneralRe: How I can make my MFC dialoge application workable online? Pin
LunaticFringe30-Mar-10 9:44
LunaticFringe30-Mar-10 9:44 
AnswerRe: How I can make my MFC dialoge application workable online? Pin
Maximilien30-Mar-10 9:55
Maximilien30-Mar-10 9:55 
GeneralRe: How I can make my MFC dialoge application workable online? Pin
moh.hijjawi30-Mar-10 11:27
moh.hijjawi30-Mar-10 11:27 
QuestionRightclick and vkmenu in an editbox Pin
Rozis30-Mar-10 7:26
Rozis30-Mar-10 7:26 
AnswerRe: Rightclick and vkmenu in an editbox Pin
Code-o-mat31-Mar-10 0:07
Code-o-mat31-Mar-10 0:07 
Show some code, how and where did you "catch" VKMENU and how did you handle it? Try adding a message handler for WM_KEYDOWN to your edit box and see if the VKMENU goes thorough there. If yes, you could either set some flag, if the flag is on, VKMENU is swalowed by your handler (does not pass it on to the __super version) and the flag is set off again, if it is off then it is passed along to the __super method. Then, when you "bring up" the edit, set the flag to on. Another aproach would be to clear the messsage queue of any incoming WM_KEYDOWN and/or WM_KEYUP messages targeted to your edit box after it has been created (you could do this using PeekMessage with PM_REMOVE specified). Don't know if any of these are doable or reliable though so if you choose to try them, be carefull...

[edit] I did some experimenting, it seems that the local menu is displayed when you release the "VKMENU key" so my guess is that you catch the keydown event, bring up the edit field, set the focus to it, and then when the key is released then the keyup events goes to your edit box and tadaa, it displays the menu. Maybe try displaying your box on keyup instead of keydown if that workds for you.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Sometimes you just have to hate coding to do it well. <

GeneralRe: Rightclick and vkmenu in an editbox Pin
Rozis31-Mar-10 1:39
Rozis31-Mar-10 1:39 
QuestionMessage Removed Pin
30-Mar-10 5:44
Vaclav_30-Mar-10 5:44 
AnswerRe: SendMessage - return value - please translate MS to English for me. Pin
David Crow30-Mar-10 5:52
David Crow30-Mar-10 5:52 
AnswerRe: SendMessage - return value - please translate MS to English for me. Pin
Randor 30-Mar-10 5:58
professional Randor 30-Mar-10 5:58 
AnswerRe: SendMessage - return value - please translate MS to English for me. Pin
CPallini30-Mar-10 7:10
mveCPallini30-Mar-10 7:10 
AnswerMessage Removed Pin
30-Mar-10 7:47
Vaclav_30-Mar-10 7:47 
GeneralRe: SendMessage - return value - please translate MS to English for me. [modified] SOLVED Pin
Richard MacCutchan30-Mar-10 9:27
mveRichard MacCutchan30-Mar-10 9:27 
GeneralRe: SendMessage - return value - please translate MS to English for me. [modified] SOLVED Pin
CPallini30-Mar-10 9:59
mveCPallini30-Mar-10 9:59 
GeneralRe: SendMessage - return value - please translate MS to English for me. [modified] SOLVED Pin
Richard MacCutchan31-Mar-10 0:12
mveRichard MacCutchan31-Mar-10 0:12 
GeneralRe: SendMessage - return value - please translate MS to English for me. [modified] SOLVED Pin
CPallini31-Mar-10 0:18
mveCPallini31-Mar-10 0:18 
GeneralRe: SendMessage - return value - please translate MS to English for me. [modified] SOLVED Pin
Richard MacCutchan31-Mar-10 0:23
mveRichard MacCutchan31-Mar-10 0:23 
JokeRe: SendMessage - return value - please translate MS to English for me. [modified] SOLVED Pin
CPallini31-Mar-10 0:36
mveCPallini31-Mar-10 0:36 
GeneralRe: SendMessage - return value - please translate MS to English for me. [modified] SOLVED Pin
Tim Craig31-Mar-10 8:55
Tim Craig31-Mar-10 8:55 
GeneralRe: SendMessage - return value - please translate MS to English for me. [modified] SOLVED Pin
CPallini31-Mar-10 11:45
mveCPallini31-Mar-10 11:45 
GeneralRe: SendMessage - return value - please translate MS to English for me. [modified] SOLVED Pin
Tim Craig31-Mar-10 12:32
Tim Craig31-Mar-10 12:32 
GeneralRe: SendMessage - return value - please translate MS to English for me. [modified] SOLVED Pin
CPallini31-Mar-10 20:32
mveCPallini31-Mar-10 20:32 
GeneralRe: SendMessage - return value - please translate MS to English for me. [modified] SOLVED Pin
Tim Craig31-Mar-10 22:24
Tim Craig31-Mar-10 22:24 

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.