Click here to Skip to main content
15,913,610 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How I can do it !!! Pin
l a u r e n17-Mar-01 22:52
l a u r e n17-Mar-01 22:52 
GeneralRe: How I can do it !!! Pin
Ahmad19-Mar-01 21:49
Ahmad19-Mar-01 21:49 
GeneralC++ question .. Pin
Hadi Rezaee16-Mar-01 19:44
Hadi Rezaee16-Mar-01 19:44 
GeneralRe: C++ question .. Pin
l a u r e n16-Mar-01 23:08
l a u r e n16-Mar-01 23:08 
GeneralRe: C++ question .. Pin
Tim Deveaux17-Mar-01 4:22
Tim Deveaux17-Mar-01 4:22 
GeneralSetModifiedFlag() ... Pin
Hadi Rezaee16-Mar-01 19:43
Hadi Rezaee16-Mar-01 19:43 
GeneralRe: SetModifiedFlag() ... Pin
l a u r e n16-Mar-01 23:13
l a u r e n16-Mar-01 23:13 
GeneralRe: SetModifiedFlag() ... Pin
Masaaki Onishi17-Mar-01 3:37
Masaaki Onishi17-Mar-01 3:37 
Hello, the codegurus around the world. Wink | ;)

Generally speaking, when we call UpdateAllViews(), and then OnUpdate() function of the views,
this means that some data must be updated.
In this case, we may add SetModifiedFlag().

In addition, if we works the complicated data structure, we usually use CObject derived class,
and serialized this object.
So, this may be problem.
For example, what shall we do if the data are the same one after the user updated?
the original data -> Updated data -> Updated data -> finally the same data as the original one.
In this case, don't we call SetModifiedFlag()?

The answer depends on the requirement...
Or, we add the function to check the content of the data whenever the application calls UpdateAllViews(). That is, even though UpdateAllViews() is called and the data isn't changed,
we don't need to call SetModifiedFlag()?

In commercial level, it is better to call SetModifiedFlag() whenever UpdateAllViews() is called.

Goodl luck! Roll eyes | :rolleyes:

Have a nice day!
-Masaaki Onishi-
GeneralCWnd ... Pin
Hadi Rezaee16-Mar-01 19:41
Hadi Rezaee16-Mar-01 19:41 
GeneralRe: CWnd ... Pin
Ahmad16-Mar-01 21:18
Ahmad16-Mar-01 21:18 
GeneralRe: CWnd ... Pin
Tim Deveaux17-Mar-01 15:24
Tim Deveaux17-Mar-01 15:24 
GeneralRun function in class ... Pin
Hadi Rezaee16-Mar-01 19:40
Hadi Rezaee16-Mar-01 19:40 
GeneralRe: Run function in class ... Pin
Ahmad16-Mar-01 21:15
Ahmad16-Mar-01 21:15 
GeneralMFC RepositionBars - memory consumed Pin
Sara Burns16-Mar-01 13:50
Sara Burns16-Mar-01 13:50 
GeneralRe: MFC RepositionBars - memory consumed Pin
l a u r e n17-Mar-01 3:05
l a u r e n17-Mar-01 3:05 
GeneralProperty Sheets in CDialogBar Pin
Rob Planche16-Mar-01 8:45
Rob Planche16-Mar-01 8:45 
GeneralMonitoring incoming calls Pin
16-Mar-01 7:00
suss16-Mar-01 7:00 
GeneralRe: Monitoring incoming calls Pin
16-Mar-01 7:14
suss16-Mar-01 7:14 
GeneralRe: Monitoring incoming calls Pin
28-Apr-01 2:43
suss28-Apr-01 2:43 
GeneralRe: Monitoring incoming calls Pin
28-Apr-01 6:19
suss28-Apr-01 6:19 
GeneralOutgoing calls Pin
28-Apr-01 2:57
suss28-Apr-01 2:57 
QuestionHow can I prevent the MFC framework from enabling my toolbar buttons? Pin
16-Mar-01 6:44
suss16-Mar-01 6:44 
AnswerRe: How can I prevent the MFC framework from enabling my toolbar buttons? Pin
Chris Losinger16-Mar-01 7:06
professionalChris Losinger16-Mar-01 7:06 
GeneralURGENT...winsock Pin
oneillci16-Mar-01 6:36
oneillci16-Mar-01 6:36 
GeneralMDI frustrations Pin
Jamie Nordmeyer16-Mar-01 6:13
Jamie Nordmeyer16-Mar-01 6:13 

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.