Solved

Removing HELP from CPropertySheet

Posted on 1999-01-23
1
185 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
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
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.

757 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

22 Experts available now in Live!

Get 1:1 Help Now