Thread: HowTo disable button in MFC app

  1. #1
    Unregistered
    Guest

    HowTo disable button in MFC app

    I have a MFC app which displays a diaglog box with the submit button initialy disabled.

    The submit button should only be enabled if the user has completed at least one edit box.

    I am able to detect the changes in the edit boxes, but how do I enable the button.

    Have spend a couple of ours on this already but cannot figure it out.


    Thanks...

  2. #2
    Registered User
    Join Date
    Oct 2001
    Posts
    23
    Use the ff. code:

    GetDlgItem(BUTTONID)->EnableWindow(TRUE);
    If they can, why can't I...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. BN_CLICKED, change button style
    By bennyandthejets in forum Windows Programming
    Replies: 13
    Last Post: 07-05-2010, 11:42 PM
  2. Newbee Q: reg. MFC dlg button & Vista UAC shield icon
    By colbyringeisen in forum Windows Programming
    Replies: 3
    Last Post: 12-29-2008, 05:16 PM
  3. non-MFC DLL with MFC app question.
    By Kempelen in forum Windows Programming
    Replies: 10
    Last Post: 08-20-2008, 07:11 AM
  4. Disable button on toolbar - MFC
    By bennyandthejets in forum Windows Programming
    Replies: 0
    Last Post: 05-10-2004, 03:31 AM
  5. WIndows programming?
    By hostensteffa in forum Windows Programming
    Replies: 7
    Last Post: 06-07-2002, 08:52 PM