Everything was working perfectly till I decided to update few **STATIC** controls' text with SetWindowText during an event which occurs in a different thread periodically, approximately once per second, the text on the STATIC controls gets updated only in every 10th iteration of this event. I am using SendMessage() to send WM_USER message to the main window which in turn updates the STATIC controls.
Now the skin of the window just goes away after a minute or so of running the app and there only remains grey rectangle, the buttons which have custom skins set with **BM_SETIMAGE** doesn't get affected by this error.
Now I am totally out of ideas on what would be going wrong. What you think I should be taking care of while doing something like this ?
**If I stop the update of the STATIC controls in the WM_USER handler, the graphic problem goes away.**
Bookmarks