remove help buttno cpropertypage

Posted on 2001-09-12
Medium Priority
Last Modified: 2013-11-20
PropertyMaster *m = new PropertyMaster("Create new collector",this,0);
prop1 *p1 = new prop1;
porp2 *p2 = new porp2;
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
Question by:monster2
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

Accepted Solution

VinExpert earned 200 total points
ID: 6476434

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

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

     //Pop it up

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

Author Comment

ID: 6477067

A. Vedran

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone 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

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 …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

800 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