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

    disable a push button

    How do you disable a push button in MFC???

    thx,
    grace
    [email protected]


  2. #2
    Join Date
    May 1999
    Location
    Toronto, Ontario, Canada
    Posts
    155

    Re: disable a push button

    m_PushButton.EnableWindow(FALSE);

    -Safai

  3. #3
    Join Date
    May 1999
    Posts
    78

    Re: disable a push button

    [ccode]
    //disable it
    GetDlgItem(IDC_MYBUTTON)->EnableWindow(FALSE);
    //hide it
    GetDlgItem(IDC_LIST)->ShowWindow(FALSE);
    [//ccode]



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