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
280 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
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!

 
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 50 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

Industry Leaders: 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

Suggested Solutions

Title # Comments Views Activity
Login Script to Copy Folders 12 50
xyBalance chalenge 58 104
Tab names are off by one 5 54
changeXy challenge 13 98
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…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.

734 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