why is it that when i try to use the drawtext or textout function within WM_PAINT message it puts it behind the background that i have set up as a static with SS_BITMAP? and when i take out the background static window, i can see the text. i am using the windows.h api and c++.

01-04-2003

Codulation

DrawText and TextOut put text onto a window's background. your static control is a child window that is on top of it's parent window's background. ... but that's pretty much what you said in your question. Try painting the bmp to your main window on the WM_PAINT message, but do it before you draw the text.