Click here to Skip to main content
15,910,603 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralLive Update Pin
BaldwinMartin7-Dec-03 17:37
BaldwinMartin7-Dec-03 17:37 
GeneralRe: Live Update Pin
Peter Molnar8-Dec-03 13:02
Peter Molnar8-Dec-03 13:02 
GeneralRe: Live Update Pin
BaldwinMartin8-Dec-03 13:20
BaldwinMartin8-Dec-03 13:20 
GeneralRe: Live Update Pin
Peter Molnar8-Dec-03 15:09
Peter Molnar8-Dec-03 15:09 
GeneralRe: Live Update Pin
BaldwinMartin9-Dec-03 7:26
BaldwinMartin9-Dec-03 7:26 
GeneralZooming a window; Pin
Bo Hunter7-Dec-03 16:18
Bo Hunter7-Dec-03 16:18 
GeneralRe: Zooming a window; Pin
Roger Allen8-Dec-03 1:34
Roger Allen8-Dec-03 1:34 
GeneralPreTranslateMessage Pin
Vancouver7-Dec-03 14:26
Vancouver7-Dec-03 14:26 
From the MSDN Library:

Return Value

Nonzero if the message was translated and should not be dispatched; 0 if the message was not translated and should be dispatched


I have a PreTranslateMessage function (with MFC) to catch some special keys (actually WM_SYSKEYUP). When my "special" keystroke arrives, I process it, and I don't want it to be further processed.

However, no matter what return code I give back, the message will be processed, i.e. the character arrives as if it had not been processed yet.

Modifying the MSG structure (the parameter of the function) yields nothing.

What can I do? Should I use another function instead of PreTranslateMessage? Which one?

Thanks
GeneralRe: PreTranslateMessage Pin
twing7-Dec-03 16:33
twing7-Dec-03 16:33 
GeneralThe solution Pin
Vancouver7-Dec-03 17:19
Vancouver7-Dec-03 17:19 
GeneralConditional Resources Pin
Bo Hunter7-Dec-03 13:51
Bo Hunter7-Dec-03 13:51 
GeneralRe: Conditional Resources Pin
Michael Dunn7-Dec-03 20:13
sitebuilderMichael Dunn7-Dec-03 20:13 
GeneralRe: Conditional Resources Pin
Anonymous7-Dec-03 20:35
Anonymous7-Dec-03 20:35 
GeneralBoring Dialog Application Pin
thowra7-Dec-03 11:05
thowra7-Dec-03 11:05 
GeneralRe: Boring Dialog Application Pin
Jörgen Sigvardsson7-Dec-03 12:42
Jörgen Sigvardsson7-Dec-03 12:42 
GeneralRe: Boring Dialog Application Pin
thowra7-Dec-03 14:05
thowra7-Dec-03 14:05 
GeneralRe: Boring Dialog Application Pin
Anthony_Yio7-Dec-03 15:01
Anthony_Yio7-Dec-03 15:01 
GeneralRe: Boring Dialog Application Pin
Jörgen Sigvardsson7-Dec-03 21:39
Jörgen Sigvardsson7-Dec-03 21:39 
GeneralDrag & drop Pin
Johannes Grunedal7-Dec-03 9:04
Johannes Grunedal7-Dec-03 9:04 
GeneralRe: Drag & drop Pin
Michael Dunn7-Dec-03 9:55
sitebuilderMichael Dunn7-Dec-03 9:55 
GeneralRe: Drag & drop Pin
twing7-Dec-03 18:19
twing7-Dec-03 18:19 
GeneralRe: Drag & drop Pin
Michael Dunn7-Dec-03 20:23
sitebuilderMichael Dunn7-Dec-03 20:23 
Generalusing a resource file as main window Pin
Ylis7-Dec-03 8:55
Ylis7-Dec-03 8:55 
GeneralRe: using a resource file as main window Pin
David Crow8-Dec-03 8:29
David Crow8-Dec-03 8:29 
Generaldatabse problem -ado- Pin
Scozturk7-Dec-03 7:55
professionalScozturk7-Dec-03 7:55 

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.