Update only a particial area of a View with UpdateAllViews(...)
-
CrocodileBuck wrote:
What can i do that i can see a little difference ?
You need to change something between calls to UpdateAllViews() if you want to see something different in the view. What are your views drawing? Something from the document? If so, change the document.
Mark Salsbery Microsoft MVP - Visual C++ :java:
I will only print Text (SetWindowText) in the View !!!???? Many many thanks and best regards Croc
-
I will only print Text (SetWindowText) in the View !!!???? Many many thanks and best regards Croc
Only you know what's going on in your views. The text data must be coming from somewhere... Change it and update the views! And make sure changing it doesn't already cause an update implicitly, or you still won't see anything. If the view is a window not in your control (where you don't do the painting, like an edit control), then you may not have control over updating regions of the window. If you are doing the painting in your view, look at the invalid rect in the WM_PAINT handler - you should see that your update rect is there. What you do with that info in your painting code is up to you. Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
Only you know what's going on in your views. The text data must be coming from somewhere... Change it and update the views! And make sure changing it doesn't already cause an update implicitly, or you still won't see anything. If the view is a window not in your control (where you don't do the painting, like an edit control), then you may not have control over updating regions of the window. If you are doing the painting in your view, look at the invalid rect in the WM_PAINT handler - you should see that your update rect is there. What you do with that info in your painting code is up to you. Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
Ok. Thanx, iwill try it ! Tomorrow i will mail my success or ... ;( ;) Many many thanx and best regards Croc
-
I will only print Text (SetWindowText) in the View !!!???? Many many thanks and best regards Croc
What class is your view derived from?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
Only you know what's going on in your views. The text data must be coming from somewhere... Change it and update the views! And make sure changing it doesn't already cause an update implicitly, or you still won't see anything. If the view is a window not in your control (where you don't do the painting, like an edit control), then you may not have control over updating regions of the window. If you are doing the painting in your view, look at the invalid rect in the WM_PAINT handler - you should see that your update rect is there. What you do with that info in your painting code is up to you. Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
You are in deep deep shit at this point dude. Maybe you should just treat the buck to a Filet-O-Fish and call it a day. :-D I'm outta here, have a great weekend! :beer:
led mike
Cheers! :beer:
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
What class is your view derived from?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
fom CView !
-
fom CView !
CrocodileBuck wrote:
fom CView !
And you're using
SetWindowText()
? I've not ever tried that, but it just seems odd."Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
You are in deep deep shit at this point dude. Maybe you should just treat the buck to a Filet-O-Fish and call it a day. :-D I'm outta here, have a great weekend! :beer:
led mike
The Server stalled posting this one, (and crashed my Laptop) Tought it was Lost. Good for You, Enjoy
Bram van Kampen
modified on Saturday, July 12, 2008 9:02 PM
-
You are in deep deep shit at this point dude. Maybe you should just treat the buck to a Filet-O-Fish and call it a day. :-D I'm outta here, have a great weekend! :beer:
led mike
led mike wrote:
I'm outta here, have a great weekend!
Just Enjoy, You Deserve. Wish I was there thoug, Regards :mad:
Bram van Kampen