Здравствуйте Pavel_Kurochkin, Вы писали:
PK>которые можно увидеть с помощью нажатия alt-tab. Конечно сразу интересует, как программно переключать эти задачи....
The
EnumWindows function
enumerates all top-level windows on the screen by passing the handle to each window, in turn, to an application-defined callback function. EnumWindows continues until the last top-level window is enumerated or the callback function returns FALSE.
BOOL EnumWindows(
WNDENUMPROC lpEnumFunc, // callback function
LPARAM lParam // application-defined value
);
The
SetForegroundWindow function puts the thread that created the specified window into the foreground and
activates the window. Keyboard input is directed to the window, and various visual cues are changed for the user. The system assigns a slightly higher priority to the thread that created the foreground window than it does to other threads.
BOOL SetForegroundWindow(
HWND hWnd // handle to window
);
У этих функций есть нюансы. см. MSDN.
которые можно увидеть с помощью нажатия alt-tab. Конечно сразу интересует, как программно переключать эти задачи....
Здравствуйте Pavel_Kurochkin, Вы писали:
PK>которые можно увидеть с помощью нажатия alt-tab. Конечно сразу интересует, как программно переключать эти задачи....
http://www.rsdn.ru/?qna/?baseserv/enumapp.xml и рядом