Click here to Skip to main content
16,014,952 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Problem with DLL Pin
Nandu_77b29-Jul-08 0:06
Nandu_77b29-Jul-08 0:06 
AnswerRe: Problem with DLL Pin
toxcct29-Jul-08 0:23
toxcct29-Jul-08 0:23 
GeneralRe: Problem with DLL Pin
Nandu_77b29-Jul-08 0:29
Nandu_77b29-Jul-08 0:29 
GeneralRe: Problem with DLL Pin
toxcct29-Jul-08 0:31
toxcct29-Jul-08 0:31 
GeneralRe: Problem with DLL Pin
ThatsAlok29-Jul-08 0:21
ThatsAlok29-Jul-08 0:21 
GeneralRe: Problem with DLL Pin
toxcct29-Jul-08 0:24
toxcct29-Jul-08 0:24 
AnswerRe: Problem with DLL Pin
Cedric Moonen28-Jul-08 7:41
Cedric Moonen28-Jul-08 7:41 
QuestionHow to set CFileDialog file filter control (cmb1) ? Pin
Osborn28-Jul-08 4:20
Osborn28-Jul-08 4:20 
Hi there.

My use case is rather simple but after looking several hours and trying different things I'm getting clueless.

I want to set the file filter combo box control within an CFileDialog. I have an derived dialog from CFileDialog, where I implemented some special settings. There it should be possible to change the current active file filter type, e.g. from JPG to GIF. And this should affect then also the normal CFileDialog.

I simply can get the dialog item cmb1 which reflects the file filter control and set the wanted filter like here:
CComboBox* pFileTypeCombo = (CComboBox*)wndDlg->GetDlgItem(cmb1);
pFileTypeCombo->SetCurSel(mSelectedFilterID - 1);


This also works but the folder view won't get updated, it still displays all JPG files only in my current folder instead of all GIF files now.

Is there a way to refresh the view or another way of setting the file filter?
Thanks a lot in advance!

Regards
Eric
AnswerRe: How to set CFileDialog file filter control (cmb1) ? Pin
Iain Clarke, Warrior Programmer28-Jul-08 4:44
Iain Clarke, Warrior Programmer28-Jul-08 4:44 
GeneralRe: How to set CFileDialog file filter control (cmb1) ? Pin
Osborn28-Jul-08 5:11
Osborn28-Jul-08 5:11 
GeneralRe: How to set CFileDialog file filter control (cmb1) ? Pin
Iain Clarke, Warrior Programmer28-Jul-08 5:29
Iain Clarke, Warrior Programmer28-Jul-08 5:29 
GeneralRe: How to set CFileDialog file filter control (cmb1) ? Pin
Osborn28-Jul-08 5:44
Osborn28-Jul-08 5:44 
GeneralRe: How to set CFileDialog file filter control (cmb1) ? Pin
Osborn30-Jul-08 3:45
Osborn30-Jul-08 3:45 
QuestionC2373:redefinition; different type modifiers Pin
zahrak28-Jul-08 4:14
zahrak28-Jul-08 4:14 
QuestionTranslating C# structure to C++ Pin
__DanC__28-Jul-08 4:08
__DanC__28-Jul-08 4:08 
AnswerRe: Translating C# structure to C++ Pin
Luc Pattyn28-Jul-08 4:21
sitebuilderLuc Pattyn28-Jul-08 4:21 
GeneralRe: Translating C# structure to C++ Pin
Matthew Faithfull28-Jul-08 4:21
Matthew Faithfull28-Jul-08 4:21 
GeneralRe: Translating C# structure to C++ Pin
__DanC__28-Jul-08 4:34
__DanC__28-Jul-08 4:34 
GeneralRe: Translating C# structure to C++ Pin
Matthew Faithfull28-Jul-08 4:49
Matthew Faithfull28-Jul-08 4:49 
GeneralRe: Translating C# structure to C++ Pin
__DanC__28-Jul-08 6:33
__DanC__28-Jul-08 6:33 
GeneralRe: Translating C# structure to C++ Pin
Mark Salsbery28-Jul-08 7:19
Mark Salsbery28-Jul-08 7:19 
QuestionShadow after using CFiledialog in the dialog Pin
bhanu_850928-Jul-08 3:44
bhanu_850928-Jul-08 3:44 
AnswerRe: Shadow after using CFiledialog in the dialog Pin
bhanu_850928-Jul-08 4:55
bhanu_850928-Jul-08 4:55 
AnswerRe: Shadow after using CFiledialog in the dialog Pin
Rajesh R Subramanian28-Jul-08 5:31
professionalRajesh R Subramanian28-Jul-08 5:31 
AnswerRe: Shadow after using CFiledialog in the dialog Pin
Mark Salsbery28-Jul-08 7:27
Mark Salsbery28-Jul-08 7:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.