?
Solved

Removing dialog caption bar

Posted on 1998-12-06
3
Medium Priority
?
308 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
[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
3 Comments
 

Accepted Solution

by:
iliya earned 200 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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

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. …
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.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses

777 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