Click here to Skip to main content
15,909,325 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: problem with ShellExecute and environment variables Pin
Luuk Weltevreden10-Feb-04 1:23
Luuk Weltevreden10-Feb-04 1:23 
GeneralRe: problem with ShellExecute and environment variables Pin
feline_dracoform11-Feb-04 0:51
feline_dracoform11-Feb-04 0:51 
GeneralRe: problem with ShellExecute and environment variables Pin
Luuk Weltevreden11-Feb-04 6:14
Luuk Weltevreden11-Feb-04 6:14 
QuestionWindows listbox has a resource error? Pin
Luuk Weltevreden10-Feb-04 0:11
Luuk Weltevreden10-Feb-04 0:11 
AnswerRe: Windows listbox has a resource error? Pin
Anonymous10-Feb-04 8:13
Anonymous10-Feb-04 8:13 
GeneralRe: Windows listbox has a resource error? Pin
Luuk Weltevreden10-Feb-04 8:35
Luuk Weltevreden10-Feb-04 8:35 
GeneralMFC drawing confusion Pin
Madhur Baheti9-Feb-04 23:40
Madhur Baheti9-Feb-04 23:40 
GeneralRe: MFC drawing confusion Pin
CodeBrain10-Feb-04 0:44
CodeBrain10-Feb-04 0:44 
The only virtual methods which are called by the MFC framework are those with OnXXX.

OnInitialUpdate is called after the view is attached to a document but before the view is initially displayed.

OnUpdate is called if you change the document data and call UpdateAllViews. So OnUpdate is called by UpdateAllViews. The default implemenation is also called by OnInitialUpdate and it invalidates the entire client area and so it will be repainted if the next WM_PAINT messages is received.

UpdateAllViews should be called if you changed the documents data and so the view of the document must be marked invalid so that it is repainted in the next WM_PAINT message! So it forces the views of the document to display the changed data.
As I said above UpdateAllViews calls OnUpdate of all views which are attached to this document (except the sender view).

Note: you can prevent that OnUpdate invalidates the whole client area, if you overwrite UpdateAllViews/OnUpdate and pass a hint object with the information which part of the view must be updated in order to refelect the document changes!

InvalidateRect adds the given rectangle to the windows update region. The update region will be repainted if the next WM_PAINT message is received. It is used by OnUpdate to invalidate the given region of the view.

OnDraw will be called by the MFC framework in order to display the document. So OnDraw is called if a WM_PAINT message has been received.

GeneralRe: MFC drawing confusion Pin
Mike Dimmick10-Feb-04 1:01
Mike Dimmick10-Feb-04 1:01 
GeneralRegarding Screen changes Pin
santosh k9-Feb-04 23:17
santosh k9-Feb-04 23:17 
GeneralRe: Regarding Screen changes Pin
Luuk Weltevreden10-Feb-04 0:34
Luuk Weltevreden10-Feb-04 0:34 
GeneralRe: Regarding Screen changes Pin
Luuk Weltevreden10-Feb-04 3:52
Luuk Weltevreden10-Feb-04 3:52 
GeneralRegarding Screen changes Pin
santosh k9-Feb-04 23:12
santosh k9-Feb-04 23:12 
GeneralSmall Problem. Pin
Prakash Nadar9-Feb-04 22:26
Prakash Nadar9-Feb-04 22:26 
GeneralRe: Small Problem. Pin
10-Feb-04 1:43
suss10-Feb-04 1:43 
GeneralRe: Small Problem. Pin
Steve S10-Feb-04 1:54
Steve S10-Feb-04 1:54 
GeneralSpreadsheet writing Pin
Ger Hayden9-Feb-04 21:58
Ger Hayden9-Feb-04 21:58 
GeneralRe: Spreadsheet writing Pin
Brian D10-Feb-04 1:46
Brian D10-Feb-04 1:46 
GeneralRe: Spreadsheet writing Pin
David Crow10-Feb-04 3:34
David Crow10-Feb-04 3:34 
GeneralListCtrl Pin
Ger Hayden9-Feb-04 21:57
Ger Hayden9-Feb-04 21:57 
GeneralRe: ListCtrl Pin
David Crow10-Feb-04 3:33
David Crow10-Feb-04 3:33 
GeneralCInternetSession and CHttpConnection. Pin
murali_utr9-Feb-04 20:59
murali_utr9-Feb-04 20:59 
GeneralOverwriting / Deleting of data from file Pin
Kel839-Feb-04 20:42
Kel839-Feb-04 20:42 
GeneralRe: Overwriting / Deleting of data from file Pin
Sebastian Schneider9-Feb-04 22:31
Sebastian Schneider9-Feb-04 22:31 
GeneralRe: Overwriting / Deleting of data from file Pin
Florin Vasilescu10-Feb-04 3:50
Florin Vasilescu10-Feb-04 3:50 

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.