Solved

Removing dialog caption bar

Posted on 1998-12-06
3
297 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
set up trigger (or something) to rename files (starting with ATL) in a linux directory 6 55
haveThree challenge 22 121
tripleUp challenge 7 86
Making an alias 7 101
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: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

828 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