Professional UI Solutions
Site Map   /  Register


Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » Customized Dialog Collapse All
Subject Author Date
Bart Kampers Nov 19, 2008 - 9:22 AM

Hello there,

Is it possible to have a dialog that shows no title bar and has a customized paint?. I want top draw a little bit of shade around it so it looks like it is hanging just above the application.

From which class should I derive it? Which methods should I override?


Thanks in advance,



Technical Support Nov 20, 2008 - 1:14 PM

It looks like you need a simple dialog with a custom drawn window non-client area. You can derive it from the CExtResizableDialog class, handle WM_NCCALCSIZE, WM_NCHITTEST and WM_NCPAINT messages. The non-rectangular window also requires re-setting the window region in the WM_SIZE message handler. Where we can take a look at the real life example of what you are looking for?