Resizing with no-title dialog.

I am making a dialog without title.
And I am trying resizing it.
The first time i was doing it, i set the property of border with thin.
But it didn't work.
So i changed it with Resizing option, and it works but
I don't want to see the border.

here's my question.
1. Can i resize a dialog without both caption and border(thin or none)?

2. Can I make transparent border??

Thanks.
I'm not sure about 2. It's prob possible if you override the right non-client area messages (WM_NCPAINT, etc), but I have never used that approach. But I have coded borderless, resizable windows.

If your window has no border or caption, it's up to you to handle the relevant mouse messages and do the window resizing yourself. WM_LBUTTONDOWN, WM_LBUTTONUP, WM_MOUSEMOVE, ... with MoveWindow() or SetWindowPos().
Last edited on
PS This CodeProject.com article shows how to do it using MFC. You should be able to translate (transcode?) the approach into regular Win32 easily enough.

A Customized Window for MFC Applications
http://www.codeproject.com/KB/MFC/CustomWindow.aspx
Last edited on
Thanks :)
Topic archived. No new replies allowed.