Hi everyone!
Have you ever experienced this problem? Is it a known bug or am I doing something wrong?
This problem only occurs on WinXP when using xp visual styles (using proper manifest file) and only if using non-docking (stable) toolbar - the problem is the same when compiling with .NET 2002 (original .net) as well as .NET 2003.
I create a regular MFC SDI application with MFC style toolbar and a splitter window embedded in Main Frame window - all this is performed by well known Visual Studio framework wizard. After the framework generated the project I removed the 3 lines in MainFrm.cpp that make the toolbar non-docking:
//m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);
//EnableDocking(CBRS_ALIGN_ANY);
//DockControlBar(&m_wndToolBar);
After starting the app here is how it looks like:
As you can see, the begining of the toolbar (top left) is not repainted correctly and displays window that is beneath it (in this case it is FAR commander, therefore the blue color).
Why is this happening? Is there a way how to overcome it? The point is that I want to use the winXP styles (so I have the nice new buttons when running under XP) and at the same time to make the toolbar non-movable (if I make the toolbar dockable, everything is OK and this problem doesn't happen).
Thanks for any advice.
krompo