Click here to Skip to main content
15,916,945 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to insert combo box in a tool bar? Pin
Hamid_RT31-May-07 19:48
Hamid_RT31-May-07 19:48 
QuestionSetFieldValue Pin
hero199531-May-07 19:05
hero199531-May-07 19:05 
QuestionRe: SetFieldValue Pin
Programm3r31-May-07 22:53
Programm3r31-May-07 22:53 
QuestionSave as.. Pin
Aint31-May-07 18:15
Aint31-May-07 18:15 
AnswerRe: Save as.. Pin
Christian Graus31-May-07 18:26
protectorChristian Graus31-May-07 18:26 
AnswerRe: Save as.. Pin
kishore j hp31-May-07 20:20
kishore j hp31-May-07 20:20 
AnswerRe: Save as.. Pin
Nelek31-May-07 22:15
protectorNelek31-May-07 22:15 
AnswerRe: Save as.. Pin
Nelek31-May-07 22:16
protectorNelek31-May-07 22:16 
This is because after "saving as" you have your new file as active file/document in your app. One solution is already above, but you can make another thing. You can override messages of "save as.." in a file, and just after the file is saved call OnCloseDoc () and OpenDocument () with the name of the old file. Then you will have the new copy of your file "saved as" but still continue working with the original file.

If the project is a new project... you can make a call to Serialize first to save the things in a default file, then call the save as and then the same as before.

But the fact is that 95% of the applications/programms work in that way. You always have active the file with the last save. I mean... if you open file1 and do some changes, then save as file2. You will have the file1 without changes in the HD, you will see the changes made in the file2 (and this one will be the active document automatically) and any posterior change will go automatically to file2, as long you don't open specifically the file1 another time.

Greetings.

--------
M.D.V.

If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?

QuestionHow to get CPU usage in vista Pin
Finix31-May-07 17:23
Finix31-May-07 17:23 
AnswerRe: How to get CPU usage in vista Pin
Nelek31-May-07 22:07
protectorNelek31-May-07 22:07 
QuestionHow to use CListCtrl with CImageList? Pin
whiteclouds31-May-07 17:13
whiteclouds31-May-07 17:13 
AnswerRe: How to use CListCtrl with CImageList? Pin
Naveen31-May-07 18:03
Naveen31-May-07 18:03 
QuestionRe: How to use CListCtrl with CImageList? Pin
Hamid_RT31-May-07 18:27
Hamid_RT31-May-07 18:27 
AnswerRe: How to use CListCtrl with CImageList? Pin
whiteclouds4-Jun-07 15:41
whiteclouds4-Jun-07 15:41 
QuestionC++ reference continued Pin
C_Zealot31-May-07 13:02
C_Zealot31-May-07 13:02 
AnswerRe: C++ reference continued Pin
Christian Graus31-May-07 13:29
protectorChristian Graus31-May-07 13:29 
GeneralRe: C++ reference continued Pin
Stephen Hewitt31-May-07 14:26
Stephen Hewitt31-May-07 14:26 
GeneralRe: C++ reference continued Pin
Christian Graus31-May-07 18:28
protectorChristian Graus31-May-07 18:28 
GeneralRe: C++ reference continued Pin
Stephen Hewitt31-May-07 18:57
Stephen Hewitt31-May-07 18:57 
AnswerRe: C++ reference continued Pin
Mark Salsbery31-May-07 14:08
Mark Salsbery31-May-07 14:08 
GeneralRe: C++ reference continued Pin
C_Zealot31-May-07 14:29
C_Zealot31-May-07 14:29 
AnswerRe: C++ reference continued Pin
Jeffrey Walton31-May-07 20:39
Jeffrey Walton31-May-07 20:39 
GeneralCTreeCtrl - GetSelectedItem [modified] Pin
Vaclav_31-May-07 12:26
Vaclav_31-May-07 12:26 
GeneralRe: CTreeCtrl - GetSelectedItem Pin
Naveen31-May-07 15:24
Naveen31-May-07 15:24 
GeneralRe: CTreeCtrl - GetSelectedItem Pin
Vaclav_31-May-07 15:55
Vaclav_31-May-07 15:55 

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.