需要重点阐述的内容包括:
1、窗体的结构(边框、客户区、非客户区……)
2、窗体的状态(最小化、最大化、正常、激活……)
3、窗体的分类(普通窗体、分层窗体、弹出窗体……)
4、不同窗体间的关系(父子、拥有与被拥有、Z轴顺序……)
5、窗体的位置与大小
6、实用功能:窗体搜索
7、窗体与线程、进程
8、窗体中的坐标系
9、其他窗体特性(DPI敏感、内容保护)
10、消息机制、链条、钩子
窗体/客户区大小
GetWindowRect
GetClientRect
AdjustWindowRectEx / AdjustWindowRect
标题栏文本
SetWindowText
GetWindowText
GetWindowTextLength
InternalGetWindowText
窗体位置
SetWindowPos
MoveWindow
BeginDeferWindowPos
EndDeferWindowPos
DeferWindowPos
*CalculatePopupWindowPosition
窗体位置及各种状态转换
GetWindowPlacement
SetWindowPlacement
ShowWindow + ShowWindowAsync
AnimateWindow
分层窗体属性
GetLayeredWindowAttributes
SetLayeredWindowAttributes
UpdateLayeredWindow + UpdateLayeredWindowIndirect
文字和图形方向(从左至右,从右至左)进程级别设置
GetProcessDefaultLayout
SetProcessDefaultLayout
标题栏信息
GetTitleBarInfo
窗体信息
GetWindowInfo
系统色彩
GetSysColor
SetSysColors
坐标转换
LogicalToPhysicalPoint
PhysicalToLogicalPoint
WindowFromPhysicalPoint + WindowFromPoint
RealChildWindowFromPoint
窗体的创建与销毁
CreateWindowEx / CreateWindow
CloseWindow
DestroyWindow
EndTask
窗体的内容保护(Windows7新特性)
GetWindowDisplayAffinity
SetWindowDisplayAffinity
跨设备的视觉适应性(Creating a DPI-Aware Application,http://msdn.microsoft.com/en-us/library/ms701681(v=VS.85).aspx)
SetProcessDPIAware
IsProcessDPIAware
多个窗体的间的Z轴顺序相关
SwitchToThisWindow
BringWindowToTop
GetTopWindow
LockSetForegroundWindow
AllowSetForegroundWindow
GetForegroundWindow
SetForegroundWindow
两个特殊窗体
GetDesktopWindow
GetShellWindow
窗体间的父子、兄弟、拥有关系
GetParent
SetParent
IsChild
EnumChildWindows
EnumChildProc
GetAncestor (Get Parent, Root, RootOwner Window)
GetWindow (Get Prev, Next, First, Last, Child, Owner, EnabledPopup Window)
GetNextWindow (Get Prev, Next Window)
ChildWindowFromPointEx / ChildWindowFromPoint
窗体的钩子与消息链
RegisterShellHookWindow
DeregisterShellHookWindow
ChangeWindowMessageFilterEx / ChangeWindowMessageFilter
窗体所在线程信息
IsGUIThread
GetGUIThreadInfo
列举出指定线程上的所有窗体(子窗体除外)
EnumThreadWindows
EnumThreadWndProc
列举出所有窗体
EnumWindows
EnumWindowsProc
查找特定的窗体
FindWindowEx / FindWindow
-------------------------------------------
ShowOwnedPopups
AnyPopup - 废弃
GetLastActivePopup
OpenIcon
IsIconic
ArrangeIconicWindows
CascadeWindows
TileWindows
GetAltTabInfo
GetWindowModuleFileName
GetWindowThreadProcessId
IsHungAppWindow
IsWindow
IsWindowUnicode
IsWindowVisible
IsZoomed
RealGetWindowClass <http://forums.wincustomize.com/3258>
SoundSentry
WinMain
1、窗体的结构(边框、客户区、非客户区……)
2、窗体的状态(最小化、最大化、正常、激活……)
3、窗体的分类(普通窗体、分层窗体、弹出窗体……)
4、不同窗体间的关系(父子、拥有与被拥有、Z轴顺序……)
5、窗体的位置与大小
6、实用功能:窗体搜索
7、窗体与线程、进程
8、窗体中的坐标系
9、其他窗体特性(DPI敏感、内容保护)
10、消息机制、链条、钩子
窗体/客户区大小
GetWindowRect
GetClientRect
AdjustWindowRectEx / AdjustWindowRect
标题栏文本
SetWindowText
GetWindowText
GetWindowTextLength
InternalGetWindowText
窗体位置
SetWindowPos
MoveWindow
BeginDeferWindowPos
EndDeferWindowPos
DeferWindowPos
*CalculatePopupWindowPosition
窗体位置及各种状态转换
GetWindowPlacement
SetWindowPlacement
ShowWindow + ShowWindowAsync
AnimateWindow
分层窗体属性
GetLayeredWindowAttributes
SetLayeredWindowAttributes
UpdateLayeredWindow + UpdateLayeredWindowIndirect
文字和图形方向(从左至右,从右至左)进程级别设置
GetProcessDefaultLayout
SetProcessDefaultLayout
标题栏信息
GetTitleBarInfo
窗体信息
GetWindowInfo
系统色彩
GetSysColor
SetSysColors
坐标转换
LogicalToPhysicalPoint
PhysicalToLogicalPoint
WindowFromPhysicalPoint + WindowFromPoint
RealChildWindowFromPoint
窗体的创建与销毁
CreateWindowEx / CreateWindow
CloseWindow
DestroyWindow
EndTask
窗体的内容保护(Windows7新特性)
GetWindowDisplayAffinity
SetWindowDisplayAffinity
跨设备的视觉适应性(Creating a DPI-Aware Application,http://msdn.microsoft.com/en-us/library/ms701681(v=VS.85).aspx)
SetProcessDPIAware
IsProcessDPIAware
多个窗体的间的Z轴顺序相关
SwitchToThisWindow
BringWindowToTop
GetTopWindow
LockSetForegroundWindow
AllowSetForegroundWindow
GetForegroundWindow
SetForegroundWindow
两个特殊窗体
GetDesktopWindow
GetShellWindow
窗体间的父子、兄弟、拥有关系
GetParent
SetParent
IsChild
EnumChildWindows
EnumChildProc
GetAncestor (Get Parent, Root, RootOwner Window)
GetWindow (Get Prev, Next, First, Last, Child, Owner, EnabledPopup Window)
GetNextWindow (Get Prev, Next Window)
ChildWindowFromPointEx / ChildWindowFromPoint
窗体的钩子与消息链
RegisterShellHookWindow
DeregisterShellHookWindow
ChangeWindowMessageFilterEx / ChangeWindowMessageFilter
窗体所在线程信息
IsGUIThread
GetGUIThreadInfo
列举出指定线程上的所有窗体(子窗体除外)
EnumThreadWindows
EnumThreadWndProc
列举出所有窗体
EnumWindows
EnumWindowsProc
查找特定的窗体
FindWindowEx / FindWindow
-------------------------------------------
ShowOwnedPopups
AnyPopup - 废弃
GetLastActivePopup
OpenIcon
IsIconic
ArrangeIconicWindows
CascadeWindows
TileWindows
GetAltTabInfo
GetWindowModuleFileName
GetWindowThreadProcessId
IsHungAppWindow
IsWindow
IsWindowUnicode
IsWindowVisible
IsZoomed
RealGetWindowClass <http://forums.wincustomize.com/3258>
SoundSentry
WinMain