Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
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
?
287 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

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 …
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.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

604 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