Re: Hotkeys and win32lib apps

new topic     » goto parent     » topic index » view thread      » older message » newer message

You have to use WM_SYSKEYDOWN or WM_SYSCHAR.

Christian Cuvier wrote:
> 
> I wanted to trap Alt-Home to perform some procsing of my own in a Win32 app. 
> Ok, just trap WM_KEYDOWN and look for VK_HOME and AltMask. Simple, and don't 
> forget returnValue(0) so as to avoid the default processing of the Home key.
> 
> But this only works halfway. Using a french keyboard, this correctly 
> identifies the right alt key, but not the left alt key. The latter works 
> correctly however, as it activates menu items in the expected way.
> 
> Do I need to set up my own event loop so that it includes the 
> TranslateAccelerator() API func so that I can trap these left alt-things?
> 
> CChris
> 
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu