Click here to Skip to main content
15,917,061 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: DLL not found !!! Pin
ViliamD25-Mar-04 5:57
sussViliamD25-Mar-04 5:57 
GeneralRe: DLL not found !!! Pin
BlackDice25-Mar-04 7:21
BlackDice25-Mar-04 7:21 
GeneralRe: DLL not found !!! Pin
_moved25-Mar-04 6:25
_moved25-Mar-04 6:25 
Generalsyntax of several keyword Pin
davidw198325-Mar-04 5:40
davidw198325-Mar-04 5:40 
GeneralRe: syntax of several keyword Pin
David Crow25-Mar-04 8:30
David Crow25-Mar-04 8:30 
GeneralFile filter on default save/open dialog Pin
Jon Baker25-Mar-04 5:29
Jon Baker25-Mar-04 5:29 
GeneralRe: File filter on default save/open dialog Pin
ViliamD25-Mar-04 5:48
sussViliamD25-Mar-04 5:48 
GeneralRe: File filter on default save/open dialog Pin
Paul Ranson25-Mar-04 5:56
Paul Ranson25-Mar-04 5:56 
I'm not sure how you get this in an MFC Dialog Based app but the MFC default File Open/Save(As) dialogs use the IDR_MAINFRAME string in the resource file.

For example and app named 'cp2' with a file extension of 'myt',

cp2\n\ncp2\ncp2 Files (*.myt)\n.myt\ncp2.Document\ncp2.Document

This string is associated with a document template in your apps InitInstance function and the contents and format are documented with CDocTemplate::GetDocString (), you can obviously have different document types with different strings leading to different extensions.

Alternatively you could bring up the open/save dialogs yourself using CFileDialog, then you can do what you like right at the point of relevance.

Paul


GeneralCalling a text file Pin
Caoimh25-Mar-04 4:57
Caoimh25-Mar-04 4:57 
GeneralRe: Calling a text file Pin
David Crow25-Mar-04 5:19
David Crow25-Mar-04 5:19 
GeneralCFileDialog: change current selection extension when selecting new filter Pin
MyttO25-Mar-04 4:39
MyttO25-Mar-04 4:39 
Generalformat a cstring for time Pin
BlackDice25-Mar-04 4:35
BlackDice25-Mar-04 4:35 
GeneralRe: format a cstring for time Pin
MyttO25-Mar-04 4:51
MyttO25-Mar-04 4:51 
GeneralRe: format a cstring for time Pin
Paul Ranson25-Mar-04 5:34
Paul Ranson25-Mar-04 5:34 
GeneralRe: format a cstring for time Pin
Joe Woodbury25-Mar-04 5:39
professionalJoe Woodbury25-Mar-04 5:39 
GeneralRe: format a cstring for time Pin
BlackDice25-Mar-04 5:54
BlackDice25-Mar-04 5:54 
GeneralRe: format a cstring for time Pin
Robert A. T. Káldy25-Mar-04 11:23
Robert A. T. Káldy25-Mar-04 11:23 
GeneralRe: format a cstring for time Pin
BlackDice25-Mar-04 11:46
BlackDice25-Mar-04 11:46 
GeneralFont Symbols Pin
Reunion25-Mar-04 4:28
Reunion25-Mar-04 4:28 
GeneralHowTo clear a radio button selection Pin
Caoimh25-Mar-04 3:05
Caoimh25-Mar-04 3:05 
GeneralRe: HowTo clear a radio button selection Pin
22491725-Mar-04 3:37
22491725-Mar-04 3:37 
GeneralRe: HowTo clear a radio button selection Pin
David Crow25-Mar-04 3:43
David Crow25-Mar-04 3:43 
GeneralRe: HowTo clear a radio button selection Pin
Antony M Kancidrowski25-Mar-04 3:47
Antony M Kancidrowski25-Mar-04 3:47 
GeneralRe: HowTo clear a radio button selection Pin
Antony M Kancidrowski25-Mar-04 3:49
Antony M Kancidrowski25-Mar-04 3:49 
Generalmsxml get element line / position Pin
Brian van der Beek25-Mar-04 3:05
Brian van der Beek25-Mar-04 3:05 

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.