Solved

Removing dialog caption bar

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
not able to insert into temp table 68 162
How to know only "File created" with EventLog 3 34
sameEnds challenge 3 160
Excel file not created as expected 7 72
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
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.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

809 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