GetDesktopWindow和GetWindow区别
2014-01-16 21:48
375 查看
GetWindow
The GetWindow function retrieves a handle to a window that has the specified relationship (Z order or owner) to the specified window.HWND GetWindow( HWND hWnd, // handle to original window UINT uCmd // relationship flag );
GetDesktopWindow
The GetDesktopWindow function returns a handle to the desktop window. The desktop window covers the entire screen. The desktop window is the area on top of which all icons and other windows are painted.[code]HWND GetDesktopWindow(VOID)[/code]
注释:GetDesktopWindow该函数返回桌面窗口的句柄;GetWindow该函数返回与指定窗口有特定关系(如Z序或所有者)的窗口句柄。
该特定的关系是通过UINT uCmd 值体现的.
下面来解释一下什么叫桌面窗口的句柄:桌面也是个窗口,成为桌面窗口,它是由windows操作系统创建的和管理的.
相关文章推荐
- GetDesktopWindow和GetWindow区别
- GetDesktopWindow和GetWindow区别
- Frame_GetWindow(::GetDesktopWindow(), GW_CHILD)
- CenterWindow()和CenterWindow(GetDesktopWindow())区别
- CWnd::GetActiveWindow与CFrameWnd::GetActiveView 区别
- getLocationInWindow和getLocationOnScreen的区别
- JavaScript--window与document的getComputedStyle()方法的区别
- getLocationInWindow和getLocationOnScreen的区别
- GetDesktopWindow之MFC窗口全屏显示
- C# Windows API应用之GetDesktopWindow ——获得桌面所有窗口句柄的方法
- getLocationInWindow 和 getLocationOnScreen的区别 以及computeVerticalScrollOffset
- android中getLocationInWindow 和 getLocationOnScreen的区别
- getLocationInWindow和getLocationOnScreen的区别
- 我的Android进阶之旅------>android中getLocationInWindow 和 getLocationOnScreen的区别
- Sessions, Window Stations and Desktops(GetDesktopWindow函数得到的桌面句柄, 是Csrss.exe创建的一个窗口)
- android中getLocationInWindow 和 getLocationOnScreen的区别
- Sessions, Window Stations and Desktops(GetDesktopWindow函数得到的桌面句柄, 是Csrss.exe创建的一个窗口)
- [转]GetForegroundWindow 与 GetActiveWindow 的区别
- VC Windows API应用之GetDesktopWindow ——获得桌面所有窗口句柄的方法
- getLocationInWindow 和 getLocationOnScreen 区别