Krzysztof Mossakowski
Windows Programming
2009 - Tasks
Cross-sectional task
Sample task
Red frame of a window
Demonstration
Red frame of the main window
Resizable window with caption bar, menu, border etc.
Frame's thickness in accordance with system settings
No flickering
Hints:
WM_NCPAINT
GetSystemMetrics(), SM_CXSIZEFRAME, SM_CYSIZEFRAME
GetWindowRect()
CreateRectRgn(), CombineRgn(), DefWindowProc()
GetWindowDC(), ReleaseDC()
CreateSolidBrush(), DeleteObject(), FillRect()
Approximate points:
accordance with requirements: 10