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

C / C++ / MFC

 
GeneralRe: getline question Pin
Alton Williams3-Nov-03 7:56
Alton Williams3-Nov-03 7:56 
GeneralRe: getline question Pin
Anonymous3-Nov-03 9:58
Anonymous3-Nov-03 9:58 
GeneralRe: getline question Pin
Joaquín M López Muñoz3-Nov-03 10:04
Joaquín M López Muñoz3-Nov-03 10:04 
GeneralRe: getline question Pin
Jeryth3-Nov-03 10:13
Jeryth3-Nov-03 10:13 
GeneralPorting from WinCE to VC++ Pin
VanHlebar3-Nov-03 7:18
VanHlebar3-Nov-03 7:18 
GeneralGetFolderFromID() from Namespace Pin
johnxx3-Nov-03 6:47
johnxx3-Nov-03 6:47 
GeneralDefault name file in serialization Pin
doctorpi3-Nov-03 5:37
doctorpi3-Nov-03 5:37 
GeneralRe: Default name file in serialization Pin
Markyg3-Nov-03 10:34
Markyg3-Nov-03 10:34 
First override the OnFileSave (and OnFileSaveAs if you want to) menu handlers, then just set the name of the default file that you want into the following variable;-

m_strPathName = _T("Whatever");

m_StrPathName is used by the CDocument save functions to work out what file name is presented to the user. If the m_strPathName is empty then the name of the document is used as a basis for the file name. So alternatively you can just call

SetTitle(_T("Whatever"));

instead, although this will not necessarily put the extension you would like onto the document by default, if you have more than one anyway.

Hope this helps,

Mark
Generalvector and delete Pin
ns3-Nov-03 5:32
ns3-Nov-03 5:32 
GeneralRe: vector and delete Pin
valikac3-Nov-03 5:44
valikac3-Nov-03 5:44 
GeneralRe: vector and delete Pin
ns3-Nov-03 5:54
ns3-Nov-03 5:54 
GeneralRe: vector and delete Pin
jhwurmbach3-Nov-03 6:32
jhwurmbach3-Nov-03 6:32 
GeneralRe: vector and delete Pin
ns3-Nov-03 7:52
ns3-Nov-03 7:52 
GeneralRe: vector and delete Pin
TFrancis3-Nov-03 8:42
TFrancis3-Nov-03 8:42 
Generalthanks! Trying it out now...... Pin
ns3-Nov-03 8:53
ns3-Nov-03 8:53 
GeneralRe: thanks! Trying it out now...... Pin
souldog3-Nov-03 9:42
souldog3-Nov-03 9:42 
GeneralRe: thanks! Trying it out now...... Pin
ns4-Nov-03 2:04
ns4-Nov-03 2:04 
GeneralStruggling with Regex Pin
DimkaSPB3-Nov-03 5:27
DimkaSPB3-Nov-03 5:27 
GeneralRe: Struggling with Regex Pin
Michael Dunn3-Nov-03 5:33
sitebuilderMichael Dunn3-Nov-03 5:33 
GeneralRe: Struggling with Regex Pin
DimkaSPB3-Nov-03 7:32
DimkaSPB3-Nov-03 7:32 
GeneralRe: Struggling with Regex Pin
Michael Dunn3-Nov-03 7:41
sitebuilderMichael Dunn3-Nov-03 7:41 
Generaldumb question Pin
K. Shaffer3-Nov-03 5:19
K. Shaffer3-Nov-03 5:19 
GeneralRe: dumb question Pin
David Crow3-Nov-03 5:23
David Crow3-Nov-03 5:23 
GeneralRe: dumb question Pin
Michael Dunn3-Nov-03 5:27
sitebuilderMichael Dunn3-Nov-03 5:27 
GeneralRe: dumb question Pin
K. Shaffer3-Nov-03 5:37
K. Shaffer3-Nov-03 5:37 

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.