Small Error, and Fix for Windows XP Themes.

Nice class! I noticed however that when I compiled this with a program set to use XP themes, if there were other controls that take keyboard focus in the same frame, then when you would TAB through the controls the Title Text would blur as it was written twice in different spots. After some debugging, I determined what was happening is that for some reason, XP is still itself trying to repaint the title (when XP themes are enabled) and as such was overwriting your custom text title.

The solution is:

1) Do not use any text on the Group Box when desiging it in the resource editor, and use the SetText function to set it's title.

2) In the source file, SxGroupBox.cpp, in the function SetText(), remark out the line to set the window text, as in:

//SetWindowText(m_txtString);

Your custom string (m_txtString) is still set and thus still drawn in your custom paint function, but now XP does not have a title to draw and overwrite your text. This provides the same functionality on all platforms. Hope that might help some.....