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

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.)
balajis79Asked:
Who is Participating?
 
Roshan DavisCommented:
Right side of you comment box, you can see accept comment as answer.

Click on that...

Regards

Roshmon
0
 
Roshan DavisCommented:
b4 DoModal

leavesheet->ModifyStyle(WS_CAPTION, 0);

0
 
balajis79Author Commented:
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
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

 
Roshan DavisCommented:
Try to remove WS_CAPTION also,
if it not working,

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

Roshmon
0
 
Roshan DavisCommented:
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
 
balajis79Author Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.