- Resizing window without THICKFRAME style
- Posted by Ufit on February 25th, 2006
Hello team.
Question as above - how to handle all resizing done by OVERLAPPED window including
the display of resize cursors on the edges? I just don't my window to have thick frame.
I'd like to do it quick, proper way and don't spend much time on gui experimenting.
Thank you for helping.
Eric
- Posted by Kellie Fitton on February 25th, 2006
Hi,
Use the following APIs to draw a frame control/size grip:
GetSystemMetrics() using SM_CXHSCROLL,
SM_CYVSCROLL,
SM_CXSIZEFRAME,
SM_CYSIZEFRAME
DrawFrameControl() using DFC_SCROLL,
DFCS_SCROLLSIZEGRIP
InvalidateRect()
OR,
CreateWindowEx() using SCROLLBAR control,
SBS_BOTTOMALIGN,
SBS_SIZEBOX
Additionally, you can include a statusBar to your window to allow
it to have a size grip as well.
http://msdn.microsoft.com/library/de...temmetrics.asp
http://msdn.microsoft.com/library/de...tdraw_4b3g.asp
http://msdn.microsoft.com/library/de...tdraw_7ano.asp
http://msdn.microsoft.com/library/de...eatewindow.asp
Hope these information helps,
Kellie.
- Lost new XP window style ; ; (Help and Support) by DevDude
- Undoing Tile Cascade / window resizing (Computers & Technology) by Greg
- Undoing Tile Cascade / window resizing (Microsoft Windows) by nothingbutt_trouble@yahoo.com
- [OT] auto-resizing text according to current window width (Graphics & Designing) by Kerberos
- Re: DATETIMEPICK_CLASS window style (Development Resources) by Slaven B.

