CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 1999
    Posts
    2

    Property Sheet's Buttons.

    Is there a way to rename the apply button on a Property Sheet. I would like to rename Apply button%2

  2. #2
    Join Date
    May 1999
    Location
    WA
    Posts
    65

    Re: Property Sheet's Buttons.

    I haven't tried the code I'm putting here, but what you're doing would be something like this:

    // Assuming that you are accessing from the property sheet itself
    CWnd* pWnd = GetDlgItem(ID_APPLY_NOW);
    pWnd->SetWindowText(_T("MyLoadButton"));

    // Now override the OnApply virtual function on your specific property page
    // to accomodate this functionality when you press the button.



    The code above is un-tested, but with some slight modifications (or none at all) it should work for you. Good luck.

    - Troy

  3. #3
    Join Date
    May 1999
    Location
    WA
    Posts
    65

    Re: Property Sheet's Buttons.

    Another solution is to hide the button entirely, and add one of your own onto the CPropertySheet derived class. There is already an article online at CodeGuru.com listed here:

    http://www.codeguru.com/propertyshee...to_sheet.shtml

    Good luck!

    - Troy

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured