Click here to Skip to main content
16,008,183 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: functions to use other than SetWindowText? Pin
lucy21-Feb-02 8:28
lucy21-Feb-02 8:28 
AnswerRe: functions to use other than SetWindowText? Pin
Christian Graus21-Feb-02 10:17
protectorChristian Graus21-Feb-02 10:17 
QuestionHow to add "File Edit View..." menù in a CDialog ? Pin
Lockhart21-Feb-02 7:33
Lockhart21-Feb-02 7:33 
AnswerRe: How to add "File Edit View..." menù in a CDialog ? Pin
Ravi Bhavnani21-Feb-02 7:41
professionalRavi Bhavnani21-Feb-02 7:41 
AnswerRe: How to add "File Edit View..." menù in a CDialog ? Pin
Paul M Watt21-Feb-02 8:05
mentorPaul M Watt21-Feb-02 8:05 
AnswerRe: How to add "File Edit View..." menù in a CDialog ? Pin
Mazdak21-Feb-02 8:12
Mazdak21-Feb-02 8:12 
AnswerThanks you :) Pin
Lockhart21-Feb-02 8:34
Lockhart21-Feb-02 8:34 
GeneralHelp with "automatic saving" Pin
Keith Goddard21-Feb-02 6:57
Keith Goddard21-Feb-02 6:57 
Hi
I'm fairly new to MFC programming and am busy building my first "serious" application for my own use. It is an online diary - I've put together an MDI application (so that I can set the background colors etc.) derived from CRichEditCtrl. I've managed to work my way through allowing the user (me!) to change font, font size, bold etc. etc.

I am a bit stuck now, though. What I'd like to do is remove the necessity to manually save each day's document. I would like to put the following in place: each time I start the app, it checks the date, and then checks to see if a document exists for this date. If so, it automatically opens the appropriate document so that I can add to it. If not, it opens a new document which will then be automatically saved at the end of the "session".

As far as I can work out, I need to find a way of automatically saving the document with "today's" date whenever a session is ended. I have found out how to automatically save an existing doc when exiting the app, and reload it when restarting the app. BUT... I don't know how to specifically save a new document using a filename that I generate, rather than the user having to specify one.

Can anyone please help? As I mentioned earlier, I'm new to MFC programming, and I'm doing this program as a "learning exercise". So far, I have found this site to be amazingly full of useful info (thank you to all programmers who take the time to help others!!)... and I'm hoping that someone out there can help me with this (small) problem.

Thanks

Keith Goddard
Pietermaritzburg, South Africa


GeneralRe: Help with "automatic saving" Pin
Paul M Watt21-Feb-02 7:29
mentorPaul M Watt21-Feb-02 7:29 
GeneralRe: Help with "automatic saving" Pin
Keith Goddard21-Feb-02 8:00
Keith Goddard21-Feb-02 8:00 
GeneralRe: Help with "automatic saving" Pin
Keith Goddard23-Feb-02 2:53
Keith Goddard23-Feb-02 2:53 
GeneralSmall Icons Pin
Aaron Schaefer21-Feb-02 6:08
Aaron Schaefer21-Feb-02 6:08 
GeneralRe: Small Icons Pin
Joaquín M López Muñoz21-Feb-02 6:27
Joaquín M López Muñoz21-Feb-02 6:27 
GeneralRe: Small Icons Pin
lucy21-Feb-02 8:33
lucy21-Feb-02 8:33 
GeneralRe: Small Icons Pin
Shog921-Feb-02 9:22
sitebuilderShog921-Feb-02 9:22 
GeneralRe: Small Icons Pin
Joaquín M López Muñoz21-Feb-02 9:30
Joaquín M López Muñoz21-Feb-02 9:30 
GeneralRe: Small Icons Pin
Tim Smith21-Feb-02 13:56
Tim Smith21-Feb-02 13:56 
GeneralRe: Small Icons Pin
Mazdak21-Feb-02 10:17
Mazdak21-Feb-02 10:17 
GeneralRe: Small Icons Pin
Jon Hulatt21-Feb-02 6:31
Jon Hulatt21-Feb-02 6:31 
GeneralHWND of focused window Pin
21-Feb-02 6:00
suss21-Feb-02 6:00 
GeneralRe: HWND of focused window Pin
Roger Stewart21-Feb-02 7:13
professionalRoger Stewart21-Feb-02 7:13 
GeneralRe: HWND of focused window Pin
21-Feb-02 7:55
suss21-Feb-02 7:55 
QuestionHow do I get Unicode automatically? Pin
Nish Nishant21-Feb-02 4:08
sitebuilderNish Nishant21-Feb-02 4:08 
AnswerRe: How do I get Unicode automatically? Pin
Joaquín M López Muñoz21-Feb-02 4:11
Joaquín M López Muñoz21-Feb-02 4:11 
GeneralRe: How do I get Unicode automatically? Pin
Nish Nishant21-Feb-02 9:19
sitebuilderNish Nishant21-Feb-02 9:19 

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.