Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Window is child - WS_CHILD
- windows is parent - (~WS_CHILD) but a child window is also a parent of their children
- window is active - no style for that (GetForegroundWindow returns the current actual active window)
- window is inactive - no style for that (GetForegroundWindow returns the current actual active window)
- window is movable - no style for that its done by managing the event on WM_SYSCOMMAND but... without WS_SYSMENU it wont have the menu to move the window
- window is resizable at sides - handled by the program on WM_SIZING
- window is resizable at corners and sides - handled by the program on WM_SIZING
- window is has resize handle at bottom right corner - handled by the program on WM_SIZING
- window is resizable at a fixed aspect ratio only - handled by the program on WM_SIZING
- *but it require the WS_SIZEBOX / WS_THICKFRAME for the window to be resizable*
- window has titlebar - WS_CAPTION
- window has titlebar button on left instead of on right hand side - WS_EX_RIGHT | WS_EX_RTLREADING
- window has thin border - WS_BORDER or WS_EX_*EDGE
- window can be clicked outside of - hu?
- window blinks if user tries to click outside of it
- *it can be handled manually with FlashWindow() on WM_ACTIVATE... but if you try to click on a parent that got disabled by a message box... this happen automatically*
- window can be hidden (for dialogs only, not the same as minimized, that would have a task bar task button)
- window cant be hidden (for dialogs only, not the same as minimized, that would have a task bar task button)
- *theres no cant cannot be hidden, that is either minimize that would should minimized on the desktop or hidden programatically by handling the WM_SYSCOMMAND*
- window has close button - (WS_CAPTION always have a close button, that would be disabled without WS_SYSMENU style)
- window has minimize button - WS_MINIMIZEBOX
- window has maximize button - WS_MAXIMIZEBOX
- window has help button - WS_EX_CONTEXTHELP
- window has vertical scroll bar - WS_VSCROLL
- window has horizontal scroll bar - WS_HSCROLL
- window can be maximised/restored down on taskbar double click - can be overriden by manipulating WM_NCBUTTONDOWN
- window has hidden close button on left hand side of titlebar (double click) - WS_SYSMENU
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement