Solved

Removing dialog caption bar

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

705 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