?
Solved

I want to remove the Title bar in a CPropertySheet(Not Property page). How do i go about doing this?

Posted on 2002-06-26
6
Medium Priority
?
285 Views
Last Modified: 2013-11-20
I have a Property Sheet with 5 pages. Following is the code i use to add the 5 pages

        CPageAToE * page1=new CPageAToE;
     
      CPageFToJ * page2=new CPageFToJ;

     CPageKToO * page3=new CPageKToO;

     CPagePToT * page4=new CPagePToT;

     CPageUToZ * page5=new CPageUToZ;
 
      CLeavePropSheet * leavesheet= new CLeavePropSheet("New Sheet",NULL,0);
       
      leavesheet->AddPage(page1);
      leavesheet->AddPage(page2);
     leavesheet->AddPage(page3);
     leavesheet->AddPage(page4);
     leavesheet->AddPage(page5);
 
      leavesheet->m_psh.dwFlags |= PSH_NOAPPLYNOW;
     
        leavesheet->DoModal();

Now How do i remove the title Bar of the Property Sheet?(Note i do not need the title "New Sheet".It was just added.)
0
Comment
Question by:balajis79
[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
  • 4
  • 2
6 Comments
 
LVL 23

Expert Comment

by:Roshan Davis
ID: 7110324
b4 DoModal

leavesheet->ModifyStyle(WS_CAPTION, 0);

0
 

Author Comment

by:balajis79
ID: 7110356
Hi roshmon,
Actually i tried this solution and it did not work. Is there any other method or should i be doing something apart from this.

rgds
Balaji
0
 
LVL 23

Expert Comment

by:Roshan Davis
ID: 7110369
Try to remove WS_CAPTION also,
if it not working,

Do it this on the OnCreate function of the property sheet class.

Roshmon
0
Get MongoDB database support online, now!

At Percona’s web store you can order your MongoDB database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card. Handle your MongoDB database support now!

 
LVL 23

Expert Comment

by:Roshan Davis
ID: 7110374
Sorry,
Try to remove WS_SYSMENU also,
if it not working,

Do it this on the OnCreate function of the property sheet class.

Roshmon
0
 

Author Comment

by:balajis79
ID: 7110416
Your earlier suggestion of removing WS_CAPTION worked when i did it on OnCreate of the property sheet.

Thanks.

rgds
Balaji

btw How do i accept this as an answer? Where is the link for it.
0
 
LVL 23

Accepted Solution

by:
Roshan Davis earned 200 total points
ID: 7112760
Right side of you comment box, you can see accept comment as answer.

Click on that...

Regards

Roshmon
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

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…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Suggested Courses

764 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