piotrp
Level 2

Captionless UI dialog

Hello!

I've got a question related to the UI of installshield dialogs - is it possible to get the captionless dialog UI?
I've tried to remove the WM_CAPTION from the style in the UI designer, but it did not work.

What I would like to achieve is something like this:



Best regards,
Piotr
Labels (1)
0 Kudos
1 Reply
piotrp
Level 2

I've found one way of removing the title bar: (Note this is a way for custom dialogs)

In the dialog's DLG_INIT handler in the dialog loop, add at the end.:

SetWindowLong( hwndDlg, GWL_STYLE, 0);
SetWindowPos( hwndDlg, 0, 0, 0, 0, 0, SWP_NOACTIVATE | SWP_NOZORDER | SWP_NOMOVE | SWP_NOREDRAW | SWP_NOSIZE | SWP_FRAMECHANGED | SWP_HIDEWINDOW );

First instruction removes the styles from the window.
Second causes dialog's cache to be cleared and actually applies new style to the dialog.

I hope this will help someone,

Best regards,
Piotr
0 Kudos