I have a dialog with a tab control that has a 1:1 relationship with its tabs and property pages multiple property pages stored in a map.
In the OnSize of my main dialog I call SizeTabControl which will properly size the tab control and call MoveWindow for each property page to position and size it.
When the program is running if I resize the dialog I always get the same background colour; the colour of the last page in the map.
What I want to do is show the colour of the currently selected tab. I think the solution is to call a method that would cause an
OnEraseBackground for that PropertyPage. I've tried to RedrawWindow but it does not cause OnEraseBackground.
I have read a couple of topics that mention InvalidateRect. Is this the proper solution and if it is how do you use it?
Are you seting style to WS_VISIBLE for only the active property page when selected through the tab control? Or are you just modifying the stacking order? With the others not set to visible, they shouldn't
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008. These same feature are in the MFC libraries that come with Visual …