CD3DSettingsDlg settingsDlg; if (settingsDlg.IsActive()) { // do something while the settings dialog is active }
while(settingsDlg.IsActive()) { // do something while the settings dialog is active }In this example, we use a while loop with the IsActive() function to continuously execute some code while the settings dialog is active. The package library for the CD3DSettingsDlg class is the DirectX SDK.