This is a discussion on how its done(hyperterminal)? within the Windows Programming forums, part of the Platform Specific Boards category; Originally Posted by CommonTater Code: // dispatch window messages while (GetMessage(&msg,NULL,0,0) > 0) if (!TranslateAccellerator( GetForegroundWindow() ,hAccellerator,&msg) if(!IsDialogMessage( GetForegroundWindow() ,&msg)) ...
"Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
Friedrich Nietzsche
"I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
George Best
"If you are going through hell....keep going."
Winston Churchill
It's done that way so that I can use a single dispatcher for all windows in an application...
Accelerator and Dialog messages should always be directed to the foreground window for tabbing and hotkey activities. If I use MainWind (or similar) in there the dialog actions (tab, space, etc.) only work for one window, not all of them.