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."
"I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
"If you are going through hell....keep going."
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.