cmb1 (and edt1) and OFN_EXPLORER
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
So I've got this nifty CFileDialog-extended class that doesn't use the OFN_EXPLORER flag. I need to check the extension the user selected, so to do that, I look at the "cmb1" control (well, also some other Explorer-style control identifiers) So everything was going well and good, until I found an article on how to allow CFileDialog-derived classes to use the OFN_EXPLORER flag (basically make the OPENFILENAME size 12bytes larger). And now the ASSERT fails. :((
CWnd* pComboBox = GetParent()->GetDlgItem(cmb1);
ASSERT_VALID(pComboBox);So, if anyone can point me in the right direction, or just outright solve this problem, that would be great! (I'd rather not have to use Win32 to solve this though) Thanks in advance.