Solved

Removing HELP from CPropertySheet

Posted on 1999-01-23
1
190 Views
Last Modified: 2010-04-02
I placed the following code in the propertsheet constructor:
      m_psh.dwFlags &= ~(PSH_HASHELP);
The button still appears once the first page is displayed.  What should I do?
0
Comment
Question by:xlr8tn
[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
1 Comment
 
LVL 3

Accepted Solution

by:
_Scotch_ earned 50 total points
ID: 1184917
The doc I looked at only indicated that you can deactivate the
button, not get rid of it...  I once renamed my Apply button in
the initdialog method... Maybe something like this will work for
you ?:

BOOL CMySheet::OnInitDialog()
{
      BOOL bResult = CPropertySheet::OnInitDialog();
      
      CWnd* w = GetWindow(GW_CHILD);
      char s[80];
      w->GetWindowText(s, 79);
      if (strcmp("&Help", s) != 0)
            do {
                  w = w->GetWindow(GW_HWNDNEXT);
                  w->GetWindowText(s, 79);
                  } while (strcmp("&Help", s) != 0);
      w->ShowWindow(FALSE);
      return bResult;
}

You might have to use Spy++ to make sure the help button's text
is really "&Help"
0

Featured Post

Technology Partners: 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

Suggested Solutions

Title # Comments Views Activity
Path to  STL Map header file 1 91
passing data from one form to another form in c++ 27 102
max float value 3 72
Installshield for Embarcadero EX 10.1 Berlin 4 92
Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

734 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