Same caption problem as before, what am I doing wrong? (half reposted)
-
For some time I'm trying to draw the caption of a dialog myself, including the buttons and the line that seperates the NC area and the Client area. Kilowatt adviced me to add SetWindowLong to the WM_NCACTIVATE handler, but that doesn't make a visual difference. Without the SetWindowLong call the borders of the NC area aren't painted at all. The border doesn't get painted, but that didn't happen in the first place, my problem was that not only the buttons were painted, but a small area around the buttons too, and there is a line drawn that seperates the client and the non-client area. If I don't make a handler to NCACTIVATE at all windows paints the NC area as soon as it looses focus, otherwise not. Maybe I didn't make myself entirely clear, but I would like windows to paint nothing at all outside of the client area, as windows refuses to draw the button without background. Thanks in advance