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???
JeniosAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
hugobosConnect With a Mentor Commented:
Use WS_MODALFRAME and WS_DLGFRAME (no caption) in ModifyStyle function.
0
 
kburns102197Commented:
The easiest way is to edit the dialog with the resource editor
0
 
kburns102197Commented:
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...
0
 
JeniosAuthor Commented:
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
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.