0

Does CWnd::GetClientRect() include the toolbar region?
Whenever i use InvalidateRect(), i pass the entire client region for repaint, inorder to retain the client window contents :

InvalidateRect(NULL);

But this affects my toolbars ( my application has two toolbars. ) - they disappear. I think it is because of InvalidateRect().

I am looking forward for a sound solution.

2
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by Bhoot
0

>>Does CWnd::GetClientRect() include the toolbar region?
Not sure if it does or not. Try using CWnd::GetWindowRect() and see if that fixes the problem.

0

>>Does CWnd::GetClientRect() include the toolbar region?
Not sure if it does or not. Try using CWnd::GetWindowRect() and see if that fixes the problem.

i think GetWindowRect() actually uses a rectangle based on screen co-ordinates. But my toolbars are also dockable on either sides, thus changing the co-ordinates. So i dont think GetWindowRect() can be useful to me.
Please see if you have a better solution. :)

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.