Re: accelerator calling member function twice
From: Rick Ruhl (ricker_at_cssincorp.com)
Date: 12/20/04
- Next message: Jason: "Critical section ?"
- Previous message: Mark Randall: "Get events from embedded Dlg"
- In reply to: Tom Serface: "Re: accelerator calling member function twice"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 20 Dec 2004 17:45:15 -0600
The function is being called with the the ON_COMMAND macro.
ON_COMMAND(ID_TNC_LOCKCWSPEED, OnTncLockcwspeed)
All I did was add the Accelerator to the accelerator table in VC++ and let
Windows and the compiler do the rest.
And no, it's not being handled anywhere else.
"Tom Serface" <tserface@msn.com> wrote in message
news:%23lirp$t5EHA.3504@TK2MSFTNGP12.phx.gbl...
> Are you handling the key in any other method like a PreTranslateMessage,
> or one of the key down or up calls?
>
> Tom
>
> "Rick Ruhl" <ricker@cssincorp.com> wrote in message
> news:%23Z8%23GRt5EHA.2592@TK2MSFTNGP09.phx.gbl...
>> I've defined a accelerator key on a menu item.
>>
>> When i'm selecting the command, with the menu, it works correctly and the
>> method is only called once.
>>
>> When i'm using the shortcut, my handler method is called twice
>>
>> I've tried using different accelerator keys with no success.
>>
>> Ideas please?
>>
>> Rick
>>
>>
>
>
- Next message: Jason: "Critical section ?"
- Previous message: Mark Randall: "Get events from embedded Dlg"
- In reply to: Tom Serface: "Re: accelerator calling member function twice"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|