Solved

how remove title bar of modal dialog

Posted on 1997-11-07
4
1,576 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 50 total points
ID: 1309561
Use WS_MODALFRAME and WS_DLGFRAME (no caption) in ModifyStyle function.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

762 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now