Archived

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

_BladeRunner_

How to retrieve the state of dialog controls

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,
pd3dApp->m_AdaptersLink

Share this post


Link to post
Share on other sites