Solved

Removing dialog caption bar

Posted on 1998-12-06
3
284 Views
Last Modified: 2013-11-20
I have added a dialog in VC++ 5.0 application using "Insert" -> "Resource" from menu. This dialog has a caption bar. At run time while creating I want to remove this caption bar. Can I Do this ?

I tried to catch PreCreateWindow message, but I am not getting it while creation of a dialog
0
Comment
Question by:nrusinhsa
  • 2
3 Comments
 

Accepted Solution

by:
iliya earned 50 total points
ID: 1325792
You can use:
BOOL CWnd::ModifyStyle( DWORD dwRemove, DWORD dwAdd, UINT nFlags = 0 );
Look at the help provided with VC about the details of using this function.

0
 

Author Comment

by:nrusinhsa
ID: 1325793
iliya Thank you for giving me solution. Your solution is 100 % perfect. I will like to ask you how do you find this ? This is given in the help no book I read on MFC. Suggest me some good books on MFC.

Thanks Once again.
0
 

Expert Comment

by:iliya
ID: 1325794
Sorry Nrusinhsa, but i am Bulgarian and I do not know which english books are good. But by my opinion and experience you will know more if you spend more time programming. That's the only way...
There are a lot of undocumented things which you will not find even in "Undocumented Windows" book or "Undocumented MFC"  or whereever.
Bye, Thanks for the points :)
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

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: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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 video discusses moving either the default database or any database to a new volume.

758 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

22 Experts available now in Live!

Get 1:1 Help Now