Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Removing HELP from CPropertySheet

Posted on 1999-01-23
1
Medium Priority
?
193 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 150 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

721 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