small dialog question

This is a discussion on small dialog question within the C++ Programming forums, part of the General Programming Boards category; Hi, I'm trying to use radio buttons to enable/disable another control in a dialog box as soon as it is ...

  1. #1
    fdy
    fdy is offline
    Registered User
    Join Date
    May 2004
    Posts
    9

    small dialog question

    Hi,
    I'm trying to use radio buttons to enable/disable another control in a dialog box as soon as it is pressed. I know to use

    GetDlgItem(IDC_SLIDER_...)->EnableWindow(false);

    but don't know where to call it. Tried calling it in my dialog class in DoDataExchange function ( if(pDX->m_bSaveAndValidate) ... )
    but that doesn't work.
    do u see my problem? What happens when a dialog selection is changed.

    Appreciate any help...

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    Windows questions are off-topic for C++ and should be directed to the Windows Programming forum. You'll have better luck getting an answer there anyway.
    My best code is written with the delete key.

  3. #3
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    Add a message handler for the change in the radio controls. Update whatever you want from within the message handler.

    Kuphryn

  4. #4
    fdy
    fdy is offline
    Registered User
    Join Date
    May 2004
    Posts
    9
    Cheers kuphryn!
    The message handler for BN_CLICKED worked

    Apologies for being off C++ topic

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. make Child Dialog not Popup?
    By Zeusbwr in forum Windows Programming
    Replies: 5
    Last Post: 04-08-2005, 03:42 PM
  2. how to set this dialog to this
    By stallion in forum Windows Programming
    Replies: 3
    Last Post: 01-31-2003, 05:19 PM
  3. MFC Dialog App Screen Refresh Question
    By Scotth10 in forum Windows Programming
    Replies: 2
    Last Post: 10-18-2002, 03:07 PM
  4. Simple Dialog Question
    By face_master in forum Windows Programming
    Replies: 2
    Last Post: 09-13-2002, 03:46 PM
  5. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 10:44 AM

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