Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


How to retrieve the state of dialog controls

This topic is 5826 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hi| how do i change/get the state of dialog controls without using MFC?? I mean how do i let my program know that a specified control (radio button, check button,....) is checked/unchecked, enabled/disabled....? --bye felix

Share this post

Link to post
Share on other sites
I copied this from the DX8.1 SDK common files

//Gets you a handle of a control in the dialog box
HWND hwndAdapterList = GetDlgItem( hDlg, IDC_ADAPTER_COMBO );

//Gets you the number corresponds to the item order in the list
DWORD dwItem = ComboBox_GetCurSel( hwndMultiSampleList );

//resets the control
ComboBox_ResetContent( hwndAdapterList );

//checks for status of the radio button
bNewWindowed = Button_GetCheck( hwndWindowedRadio );

//you can dynamicly add items to the list
ComboBox_SetItemData( hwndAdapterList, dwItem, a );

DWORD dwItem = ComboBox_AddString( hwndAdapterList,

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!