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

x
?
Solved

remove help buttno cpropertypage

Posted on 2001-09-12
2
Medium Priority
?
428 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
[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
2 Comments
 
LVL 8

Accepted Solution

by:
VinExpert earned 200 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

Independent Software Vendors: 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

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

610 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