-
October 25th, 2010, 04:25 AM
#1
CSplitterWnd. How to paint while separator is moving
How to paint while separator is moving.
-
October 25th, 2010, 04:29 AM
#2
Re: CSplitterWnd. How to paint while separator is moving
What are you trying to paint? In what window?
Victor Nijegorodov
-
October 25th, 2010, 04:47 AM
#3
Re: CSplitterWnd. How to paint while separator is moving
When I moving separator window content does not changing. Content change after I released separator. I would like to update content while separator is moving.
-
October 25th, 2010, 04:57 AM
#4
Re: CSplitterWnd. How to paint while separator is moving
Handle WM_SIZE in every pane you want to change some content. Use Invalidate or InvalidateRect to invalidate controls/regions you want to update - WM_PAIT (or WM_DRAW in the case of CVIew derived class) will be called automatically in response to invalidation.
Last edited by VictorN; October 25th, 2010 at 05:26 AM.
Victor Nijegorodov
-
October 25th, 2010, 05:18 AM
#5
Re: CSplitterWnd. How to paint while separator is moving
Originally Posted by VictorN
Handle WM_SIZE in every pane you want to change some content. Use Invalidateor InvalidateRect to invalidate controls/regions you want to update - WM_PAIT (or WM_DRAW in the case of CVIew derived class) will be called automatically in response to invalidation.
Unfortunately WM_SIZE is called when lbutton is released. WM_SIZE does not called when separator is moving.
-
October 25th, 2010, 05:27 AM
#6
Re: CSplitterWnd. How to paint while separator is moving
Originally Posted by user008
Unfortunately WM_SIZE is called when lbutton is released. WM_SIZE does not called when separator is moving.
Again:
Originally Posted by VictorN
Handle WM_SIZE in every pane you want to change some content. Use Invalidate or InvalidateRect to invalidate controls/regions you want to update - WM_PAIT (or WM_DRAW in the case of CVIew derived class) will be called automatically in response to invalidation.
Victor Nijegorodov
-
October 25th, 2010, 05:40 AM
#7
Re: CSplitterWnd. How to paint while separator is moving
If I use Invalidate in WM_SIZE pane WM_SIZE does not call when separator is moving. Pane WM_SIZE is called when separator is released by left mouse button. I would like to call invalidate during separator is moving.
-
October 25th, 2010, 05:48 AM
#8
Re: CSplitterWnd. How to paint while separator is moving
Derive your own class from CSplitterWnd and override OnDrawSplitter
Victor Nijegorodov
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|