• Advertisement

Archived

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

How to retrieve the state of dialog controls

This topic is 5712 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
Advertisement
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,
pd3dApp->m_AdaptersLink

Share this post


Link to post
Share on other sites

  • Advertisement