Solved

Removing HELP from CPropertySheet

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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

630 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