Thread: DrawText and backgrounds c++

  1. #1
    Registered User AtomRiot's Avatar
    Join Date
    Jan 2003
    Posts
    120

    DrawText and backgrounds c++

    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++.
    All Your Base Are Still Belong to Someone!!!
    And you Remember that!!!

  2. #2
    Registered User
    Join Date
    Dec 2002
    Posts
    119
    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.

    -Futura
    If you speak or are learning Spanish, check out this Spanish and English Dictionary, it is a handy online resource.
    What happens is not as important as how you react to what happens. -Thaddeus Golas

Popular pages Recent additions subscribe to a feed