Insert Button into a window
Posted on 1997-11-21
I created a window and painting lines and text on it's DC ,
I need to insert standard windows controls too , like buttons
and text boxs , this is not easy , when adding the control
the entire window recieves WM_PAINT , and the control (radio
button for example) won't paint until I press the space where
it should be displayed , what am I doing wrong ?
this is my program data:
windows class styles : CS_OWNDC | CS_DBLCLKS
window styles : WS_OVERLAPPEDWINDOW
hdc = ...
when other painting (not WM_PAINT)