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
    6

    Property sheet - remove OK/Cancel button

    Hello,

    Is there any way to remove (or hide) the OK and CANCEL buttons of a PropertySheet.

    Thanks in advance.

    COROBOR
    France


  2. #2
    Join Date
    Apr 1999
    Posts
    4

    Re: Property sheet - remove OK/Cancel button


  3. #3
    Join Date
    May 1999
    Posts
    5

    Re: Property sheet - remove OK/Cancel button

    This is the line from MFC\SRC\DLGPROP.cpp file. You can find this in VC98 directory:
    AFX_STATIC_DATA int _afxPropSheetButtons[] = { IDOK, IDCANCEL, ID_APPLY_NOW, IDHELP };
    You can get handle of any button (CButton* btn=(CButton*)GetDlgItem(IDOK)) and do whatever you want with this button ( hide, replace, change text ...).



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