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

    unable to disable a pushbutton in a dailogbox



    Hi, there


    I use dlg.getdlgitem(ID_BUTTON)->EnableWindow(false) to disable a pushbutton in dialogbox ID_BUTTON, but it still enabled

    , Why? Can somebody help me?


    Thanks!

  2. #2
    Join Date
    Mar 1999
    Posts
    3

    Re: unable to disable a pushbutton in a dailogbox



    Try typing false in all caps.


    ie. FALSE

  3. #3
    Join Date
    Mar 1999
    Posts
    6

    Re: unable to disable a pushbutton in a dailogbox



    Hi,


    You can use GetDlgItem itself to get the button's handle. The way I used

    it in my application

    is


    (CButton *) GetDlgItem(IDC_BUTTON)->EnableWindow(FALSE);


    I think this will help u.


    Reshmi




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