DrawText and backgrounds c++

This is a discussion on DrawText and backgrounds c++ within the Windows Programming forums, part of the Platform Specific Boards category; why is it that when i try to use the drawtext or textout function within WM_PAINT message it puts it ...

  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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21