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

C / C++ / MFC

 
QuestionOperator Usage Pin
ForNow20-Apr-10 7:32
MemberForNow20-Apr-10 7:32 
AnswerRe: Operator Usage Pin
Maximilien20-Apr-10 7:56
MemberMaximilien20-Apr-10 7:56 
AnswerRe: Operator Usage Pin
«_Superman_»20-Apr-10 8:45
professional«_Superman_»20-Apr-10 8:45 
AnswerRe: Operator Usage [modified] Pin
Gwenio20-Apr-10 10:15
MemberGwenio20-Apr-10 10:15 
GeneralRe: Operator Usage Pin
CPallini20-Apr-10 12:40
mveCPallini20-Apr-10 12:40 
GeneralRe: Operator Usage Pin
ForNow21-Apr-10 3:52
MemberForNow21-Apr-10 3:52 
QuestionRe: Operator Usage Pin
CPallini21-Apr-10 11:31
mveCPallini21-Apr-10 11:31 
QuestionSwallow a keyup Pin
Rozis20-Apr-10 7:05
MemberRozis20-Apr-10 7:05 
This is a part 2 on a question i posted earlier on this forum. The problem:

In a Keydown handler, when a user pressed the VK_MENU key an editbox is created. So far so good. Problem is that the standard behaviour of windows for a KEYUP-message of this key is to open a context menu. I was suggested:

1) to create the editbox in the keyup handler. This is not an option.
2) to swallow the keyup-message. This sounds good.

My question: how to swallow the keyup message? Is it setting up a local message dispatcher that dispatches messages till the keyup event comes in view, and then just trow it away? What happens to the keyboardstate then? I'm using C. A light on the right approach would be welcome...

Rozis
QuestionRe: Swallow a keyup Pin
Iain Clarke, Warrior Programmer20-Apr-10 23:20
MemberIain Clarke, Warrior Programmer20-Apr-10 23:20 
AnswerRe: Swallow a keyup Pin
Iain Clarke, Warrior Programmer20-Apr-10 23:32
MemberIain Clarke, Warrior Programmer20-Apr-10 23:32 
GeneralRe: Swallow a keyup Pin
Rozis21-Apr-10 13:23
MemberRozis21-Apr-10 13:23 
QuestionHow to capture a dialog without the effect of glow Pin
xugz021220-Apr-10 6:53
Memberxugz021220-Apr-10 6:53 
QuestionVisual Studio 2010 - Incremental Build Problem Pin
Mike Doner20-Apr-10 6:51
MemberMike Doner20-Apr-10 6:51 
AnswerRe: DateTimeControl date format Pin
daveyerwin20-Apr-10 7:19
Memberdaveyerwin20-Apr-10 7:19 
GeneralRe: DateTimeControl date format Pin
Lodeclaw20-Apr-10 7:21
MemberLodeclaw20-Apr-10 7:21 
GeneralRe: DateTimeControl date format Pin
David Crow20-Apr-10 10:27
MemberDavid Crow20-Apr-10 10:27 
AnswerRe: DateTimeControl date format Pin
daveyerwin20-Apr-10 7:40
Memberdaveyerwin20-Apr-10 7:40 
QuestionHTTP header processing in C++ Pin
Fareed Rizkalla20-Apr-10 5:16
MemberFareed Rizkalla20-Apr-10 5:16 
QuestionRe: HTTP header processing in C++ Pin
David Crow20-Apr-10 5:42
MemberDavid Crow20-Apr-10 5:42 
AnswerRe: HTTP header processing in C++ Pin
Fareed Rizkalla20-Apr-10 14:40
MemberFareed Rizkalla20-Apr-10 14:40 
GeneralRe: HTTP header processing in C++ Pin
Moak21-Apr-10 0:01
MemberMoak21-Apr-10 0:01 
QuestionRe: HTTP header processing in C++ Pin
David Crow21-Apr-10 3:52
MemberDavid Crow21-Apr-10 3:52 
QuestionLocal Variable changes suddenly Pin
Nxsis20-Apr-10 4:03
MemberNxsis20-Apr-10 4:03 
AnswerRe: Local Variable changes suddenly Pin
Stephen Hewitt20-Apr-10 4:12
MemberStephen Hewitt20-Apr-10 4:12 
GeneralRe: Local Variable changes suddenly Pin
Nxsis20-Apr-10 20:44
MemberNxsis20-Apr-10 20:44 

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.