Date: 02-16-2022
Return to Index
created by gbSnippets
http://msdn.microsoft.com/en-us/library/ms632599%28v=vs.85%29.aspx#child
WS_Overlapped: Title bar and border
WS_overlappedWindow: Title bar, sizing border, window menu, min/max buttons
WS_Popup : same as WS_overlapped except title bar is options
WS_caption to get title bar
WS_PopupWindow : popup with border and window menu
%WS_Child
- Limited to client area of its parent window
- parent can be WS_Overlapped, Popup, or another child
- has client area but no other features, unless specifically requested
- can request titlebar, window menu, min/max button, border, scrollbars
- cannot have menu
- positioned relative to upper/left of parent client area
- automatically destroyed before parent is destroyed
- moves with parent client area
- shown after parent window is shown
- by default, parent draws over child -unless parent has WS_ClipChildren
- WS_Clipchildren invokes performance loss
- existing child can be moved to new parent (parent can be desktop)
- system passes child message directly to child (does not pass through parent)
- two useful API IsChil EnumerateChildWindows
Layered Windows
- can be translucent (alpha-blended)
- create using WS_Ex_Layered or SetWindowLong
- use SetLayeredWindowAttributes to make visible
- use UpdateLayeredWindow to make visible
- WS_Ex_Layered cannot be used for child windows
- UpdateLayered Window is faster/more efficient
- system repaints layered windows and windows of underlying apps
'gbs_01147
'Date: 03-10-2012
http://www.garybeene.com/sw/gbsnippets.htm