Solved

Removing HELP from CPropertySheet

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
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.

831 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