|
-
September 25th, 2009, 11:57 AM
#7
Re: CFileDialog dynamically change filter list
You could use something like this...
CComboBox *pWndFilesOfTypeCombo = (CComboBox*)GetParent()->GetDlgItem(cmb1);
int index = pWndFilesOfTypeCombo->GetCurSel();
CString ext;
ext.SetSysString((BSTR)pWndFilesOfTypeCombo->GetItemData(index));
That will get you the index of the selected item and the extension of that selection.
Dan
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|