Solved

remove help buttno cpropertypage

Posted on 2001-09-12
2
421 Views
Last Modified: 2013-11-20
PropertyMaster *m = new PropertyMaster("Create new collector",this,0);
prop1 *p1 = new prop1;
porp2 *p2 = new porp2;
m->AddPage(p1);
m->AddPage(p2);
m->m_psh.dwFlags |= PSH_NOAPPLYNOW ;
m->m_psh.dwFlags &= ~PSH_HASHELP;

PropertyMaster is PropertySheet class
prop1 & porp2 are CPropertyPage's

I need to remove Help button how to do that
0
Comment
Question by:monster2
2 Comments
 
LVL 8

Accepted Solution

by:
VinExpert earned 50 total points
ID: 6476434
Hi,

Modify ur code as follows

CPropSheet *m = new CPropSheet("Create new collector",this,0);
     CProp1 *p1 = new CProp1;
     CProp2 *p2 = new CProp2;

     //Remove help from pages
     p1->m_psp.dwFlags &= ~PSP_HASHELP;
     p2->m_psp.dwFlags &= ~PSP_HASHELP;

     //Add pages
     m->AddPage(p1);
     m->AddPage(p2);

     //Set props
     m->m_psh.dwFlags |= PSH_NOAPPLYNOW ;
     m->m_psh.dwFlags &= ~PSH_HASHELP;

     //Pop it up
     m->DoModal();

U have to remove the help button from each pages also. That will solve the prob.
Try it out.
VinExpert
0
 

Author Comment

by:monster2
ID: 6477067
Thanks

Regards
A. Vedran
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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

Suggested Solutions

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

726 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