windowsAPI

需要重点阐述的内容包括:
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
  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值