Link to home
Start Free TrialLog in
Avatar of Jenios
Jenios

asked on

how remove title bar of modal dialog

hi, i like hide and show the title bar of a dialog box.
i use ModifyStyle(WS_CAPTION|WS_SYSMENU|WS_BORDER,0)
ShowWindow(SW_HIDE);
ShowWindow(SW_SHOW);

the system menu hide but te title bar not, why???
Avatar of kburns102197
kburns102197

The easiest way is to edit the dialog with the resource editor
Using the resource editor (the little tree tab between the classes and the files tab) select the dialog to edit it.  Place the cursor on the dialog and right click once then select properties.  On the Properties dialog ,use the Styles tab, then uncheck the Title box.  You will see the title bar disappear instantly.  Recompile and your on your way.  Let me know if you need more help...
Avatar of Jenios

ASKER

i know this, the idea is hide or show in execution, p.e i doubleclick on dialog background and title bar hide, on new doubleclick and title bar show.

excuse me my poor english
thanks
ASKER CERTIFIED SOLUTION
Avatar of hugobos
hugobos

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial