Hi,
Assuming that you're using Win32 API, here's some extracts from the MSDN.
To enable or disable a dialog control, you'll need to use GetDlgItem
function.
The GetDlgItem function retrieves the handle of a control in the specified
dialog box.
Once you have the handle, you can disable the control with this function:
BOOL EnableWindow(
HWND hWnd, // handle to window
BOOL bEnable // flag for enabling or disabling input
);
The EnableWindow function enables or disables mouse and keyboard input to
the specified window or control. When input is disabled, the window does not
receive input such as mouse clicks and key presses. When input is enabled,
the window receives all input.
Regards,
Yeoh
~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~
Author of "How to Create an eBook Using Visual C++"
Free Downloads at http://www.yeohhs.com
ICT eBooks by Yeoh HS
~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~
----- Original Message -----
From: Daniel Glenfield <sp...@ho...>
To: <dev...@li...>
Sent: Monday, April 22, 2002 3:26 AM
Subject: [Dev-C++] dialog box
>
> I'm using VC++ 6.0 to make a dialog box. I have two radio buttons, with a
> drop down menu next to each.
> Does anyone know how to make it so that when radio A is selected, radio B
> and it's drop down menu is greyed out and unselectable? I have got both
> buttons alternating, so both cannot be selected at once using Tab Order
and
> the group checkbox on the first.
>
> any ideas?
>
>
>
> _________________________________________________________________
> Send and receive Hotmail on your mobile device: http://mobile.msn.com
>
>
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|