Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

how remove title bar of modal dialog

Posted on 1997-11-07
4
Medium Priority
?
1,589 Views
Last Modified: 2013-11-19
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???
0
Comment
Question by:Jenios
  • 2
4 Comments
 
LVL 1

Expert Comment

by:kburns102197
ID: 1309558
The easiest way is to edit the dialog with the resource editor
0
 
LVL 1

Expert Comment

by:kburns102197
ID: 1309559
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
 

Author Comment

by:Jenios
ID: 1309560
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
 

Accepted Solution

by:
hugobos earned 100 total points
ID: 1309561
Use WS_MODALFRAME and WS_DLGFRAME (no caption) in ModifyStyle function.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question