Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


#ActualVortez

Posted 13 June 2013 - 06:53 PM

Well, it just bypass the calls to dispatch and translate message so it's like the key was never pressed for the application (WndProc don't get called).

 

I admit it's a bit ugly but it could easily be fixed by adding the code in a simple function.

 

ex:

bool IsF10KeydownMsg(MSG msg)
{
    return (msg.message == WM_SYSKEYDOWN && msg.wParam == VK_F10);
}
 

Or whatever suit your need.

 

Maybe there is another way, but i don't know it. This work just fine imo.


#2Vortez

Posted 13 June 2013 - 06:52 PM

Well, it just bypass the calls to dispatch and translate message so it's like the key is never pressed for the application (WndProc don't get called).

 

I admit it's a bit ugly but it could easily be fixed by adding the code in a simple function.

 

ex:

bool IsF10KeydownMsg(MSG msg)
{
    return (msg.message == WM_SYSKEYDOWN && msg.wParam == VK_F10);
}
 

Or whatever suit your need.

 

Maybe there is another way, but i don't know it. This work just fine imo.


#1Vortez

Posted 13 June 2013 - 06:51 PM

Well, it just bypass the calls to dispatch and translate message so it's like the key is never pressed for the application (WndProc don't get called).

 

I admit it's a bit ugly but it could easily be fixed by adding the code in a simple function.

 

ex:

bool IsF10KeydownMsg(MSG msg)
{
    return (msg.message == WM_SYSKEYDOWN && msg.wParam == VK_F10);
}
 

Or whatever suit your need.


PARTNERS