If you don't paint the background, and don't erase the background, you end up seeing nothing. That's probably a bit TOO transparent :-)
If you really want transparency for you button, then you are better off making it owner-drawn.
You can draw the button border with DrawFrame, and the text with DrawState.
You'll still need to have a do-nothing OnEraseBkgnd, otherwise the grey rect is still drawn.
Main Topics
Browse All Topics





by: cappelliPosted on 2000-06-02 at 00:22:45ID: 2879467
You should also add a WM_ERASEBKGND handler which does nothing and returns TRUE.