Solved

how remove title bar of modal dialog

Posted on 1997-11-07
4
1,585 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 50 total points
ID: 1309561
Use WS_MODALFRAME and WS_DLGFRAME (no caption) in ModifyStyle function.
0

Featured Post

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
bobThere java chalenge 45 97
Problem to App 4 145
I could not set window to top 4 62
How do I get Window Title of all opened process? 4 60
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.

734 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