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

    how 2 make a button invisible

    just as title.
    thanx.


  2. #2
    Join Date
    Jul 1999
    Location
    Romania - Iasi
    Posts
    558

    Re: how 2 make a button invisible

    Try this:

    CWnd *pWnd = GetDlgItem( IDC_MYBUTTON );
    pWnd->ShowWindow( SW_HIDE );




    Let me know if this help u
    Regards,
    Ovidiu


  3. #3
    Join Date
    May 1999
    Location
    CA, USA
    Posts
    586

    Re: how 2 make a button invisible

    CButton is derived from CWnd... so use CWnd::ShowWindow() with SW_HIDE as the parameter to hide the window (button) and SW_SHOW to show the window.

    You can create a member variable for your button with ClassWizard of type CButton and use the dot operator to call the ShowWindow() function.

    Rail


    ------------
    Recording Engineer/Software Developer
    Rail Jon Rogut Software
    http://home.earthlink.net/~railro/
    [email protected]

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