HowTo disable button in MFC app

This is a discussion on HowTo disable button in MFC app within the Windows Programming forums, part of the Platform Specific Boards category; I have a MFC app which displays a diaglog box with the submit button initialy disabled. The submit button should ...

  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-06-2010, 12:42 AM
  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, 08:11 AM
  4. Disable button on toolbar - MFC
    By bennyandthejets in forum Windows Programming
    Replies: 0
    Last Post: 05-10-2004, 04:31 AM
  5. WIndows programming?
    By hostensteffa in forum Windows Programming
    Replies: 7
    Last Post: 06-07-2002, 09:52 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21