Solved

remove help buttno cpropertypage

Posted on 2001-09-12
2
417 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
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.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

911 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now