Win32 - RamWatch - hooked up accel table

This commit is contained in:
adelikat 2009-05-12 16:35:22 +00:00
parent 3bc7efc516
commit d33cfa55a5
1 changed files with 7 additions and 0 deletions

View File

@ -985,6 +985,13 @@ void CheckMessages()
{
if( GetMessage( &msg, 0, 0, 0)>0 )
{
if (RamWatchHWnd && IsDialogMessage(RamWatchHWnd, &msg))
{
if(msg.message == WM_KEYDOWN) // send keydown messages to the dialog (for accelerators, and also needed for the Alt key to work)
SendMessage(RamWatchHWnd, msg.message, msg.wParam, msg.lParam);
continue;
}
if(!TranslateAccelerator(hwnd,hAccel,&msg))
{
TranslateMessage(&msg);