I cannot figure out how to stop windows from drawing a window, I think its a "USERDRAW" flag but I am not sure, I dont wan the window not to be there, I just want to draw it myself, any ideas?
SPH
I cannot figure out how to stop windows from drawing a window, I think its a "USERDRAW" flag but I am not sure, I dont wan the window not to be there, I just want to draw it myself, any ideas?
SPH
Make sure your wnd has a NULL brush when you create it. Give it the WS_POPUP style (|WS_SYSMENU if you want to get it to minimize to the taskbar).
Then just draw it (blt) yourself either diy, in WM_PAINT or WM_ERASEBKGND.
If you give your wnd the WS_SYSMENU style you might want to handle the WM_NCHITTEST to emulate/simulate default sys menu cmds.
Thats what I did, and it works okay, but I wanted to know if there was a was to keep the window the way it is, but make windows just not draw it?
SPH
P.S. I used the "do it you'reself way", didn't use windowz messaging stuff... I wrote math to simulated buttons and sliderz and the system menu itself.
>>didn't use windowz messaging stuf<<
which is possibly the beginning & end of your problem.
At the very least, handle the WM_ERASEBKGND; all you need do in it is:
return TRUE;
This should stop windows from drawing the background.
CProgramming FAQ
Caution: this person may be a carrier of the misinformation virus.
Don't call ShowWindow()?
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.