SwitchToThisWindow

該函式將焦點切換指定的視窗,並將其帶到前台。

函式原型: VOID SwitchToThisWindow(HWND hWnd, BOOL fAltTab)

基本介紹

  • 中文名:焦點切換指定的視窗,並將其帶到前台
  • 外文名:SwitchToThisWindow
  • hWnd [in]:要切換到的視窗的句柄。
  • 返回值:無。
函式功能,參數,返回值,備註,

函式功能

該函式將焦點切換指定的視窗,並將其帶到前台。
函式原型: VOID SwitchToThisWindow(HWND hWnd, BOOL fAltTab)

參數

hWnd [in]:要切換到的視窗的句柄。
fAltTab [in]:TRUE 表示使用 Alt/Ctl+Tab 鍵的先後次序來切換視窗,否則設為 FALSE。

返回值

無。

備註

This function is typically called to maintain window z-ordering.
Although you can access this function by using LoadLibrary and GetProcAddress combined in Windows versions prior to Windows XP, the function is not accessible using the standard Include file and library linkage. The header files included in Windows XP Service Pack 1 (SP1) and Windows Server 2003 document this function and make it accessible using the appropriate Include file and library linkage. However, this function is deprecated and not intended for general use. It is recommended that you do not use it in new programs because it might be altered or unavailable in subsequent versions of Windows.

相關詞條

熱門詞條

聯絡我們