Click here to Skip to main content
15,914,905 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to paint nonclient area of Window application? Pin
CPallini13-Apr-07 0:25
mveCPallini13-Apr-07 0:25 
QuestionUpgrade VC++ Application to VC++.NET Pin
Sunil Lanke13-Apr-07 0:02
Sunil Lanke13-Apr-07 0:02 
AnswerRe: Upgrade VC++ Application to VC++.NET Pin
Michael Dunn13-Apr-07 8:48
sitebuilderMichael Dunn13-Apr-07 8:48 
QuestionHow to import icons to the list Box Pin
phani130212-Apr-07 23:45
phani130212-Apr-07 23:45 
AnswerRe: How to import icons to the list Box Pin
CPallini13-Apr-07 1:26
mveCPallini13-Apr-07 1:26 
Questionhow to link the prolog to C++ Pin
ismail marmoush12-Apr-07 23:40
ismail marmoush12-Apr-07 23:40 
QuestionHow to import CIE and CLS files? Pin
Joan M12-Apr-07 23:33
professionalJoan M12-Apr-07 23:33 
QuestionHow to set document file extension? Pin
maxmaven12-Apr-07 23:03
maxmaven12-Apr-07 23:03 
Hi,

I am using serialize to write out my MFC application document data. I want to have names in the file dialog post-fixed with a file extension, like "binky.dfg" (.dfg is the file extension). I understand I need to call CWinApp::RegisterShellFileTypes(...). However, this will only work if I set the appropriate string for the file extension in my CSingleDocTemplate. I browsed around and found CSingleDocTemplate.GetDocString(...). This will let me read what the file extension is for my document. But how do I set a file extension? There is no SetDocString(...).

It looks like the CSingleDocTemplate members I am interested in are some/all of regFileTypeId, regFileTypeName, filterExt, or filterName. I'm not sure which one I should be working with. Also, these are member variables of the class. Shouldn't I be not touching these directly? Rather, shouldn't I be using some class member functions to do the work?

Help? D'Oh! | :doh:

Max
AnswerRe: How to set document file extension? Pin
Paresh Chitte13-Apr-07 2:41
Paresh Chitte13-Apr-07 2:41 
QuestionMFC Serialization Pin
Keshav V. Kamat12-Apr-07 22:52
Keshav V. Kamat12-Apr-07 22:52 
AnswerRe: MFC Serialization Pin
Cedric Moonen12-Apr-07 23:12
Cedric Moonen12-Apr-07 23:12 
GeneralRe: MFC Serialization Pin
Keshav V. Kamat12-Apr-07 23:46
Keshav V. Kamat12-Apr-07 23:46 
AnswerRe: MFC Serialization Pin
maxmaven12-Apr-07 23:16
maxmaven12-Apr-07 23:16 
GeneralRe: MFC Serialization Pin
Keshav V. Kamat12-Apr-07 23:48
Keshav V. Kamat12-Apr-07 23:48 
QuestionHow to merge only two cells using MSHFlexGrid? Pin
megha_gharote12-Apr-07 22:26
megha_gharote12-Apr-07 22:26 
QuestionMultiple fonts CEdit Pin
hatemtaleb12-Apr-07 22:20
hatemtaleb12-Apr-07 22:20 
AnswerRe: Multiple fonts CEdit Pin
Mark Salsbery13-Apr-07 7:51
Mark Salsbery13-Apr-07 7:51 
Questionalready defined in .obj Pin
Programm3r12-Apr-07 22:16
Programm3r12-Apr-07 22:16 
AnswerRe: already defined in .obj (modified: some addendum) Pin
CPallini12-Apr-07 22:24
mveCPallini12-Apr-07 22:24 
QuestionRe: already defined in .obj [MOD] Pin
Programm3r12-Apr-07 22:30
Programm3r12-Apr-07 22:30 
AnswerRe: already defined in .obj [MOD] Pin
Michael Dunn12-Apr-07 23:02
sitebuilderMichael Dunn12-Apr-07 23:02 
GeneralRe: already defined in .obj [MOD] Pin
Programm3r13-Apr-07 1:15
Programm3r13-Apr-07 1:15 
GeneralRe: already defined in .obj (modified: some addendum) Pin
Programm3r12-Apr-07 22:35
Programm3r12-Apr-07 22:35 
AnswerRe: already defined in .obj Pin
Don Box12-Apr-07 22:34
Don Box12-Apr-07 22:34 
QuestionRe: already defined in .obj Pin
Programm3r12-Apr-07 22:36
Programm3r12-Apr-07 22:36 

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.