static background and WS_CLIPCHILDREN
-
Dear experts, Please show me how to redraw the background of static control (Group box) when its parent window has been set WS_CLIPCHILDREN style. Best regards.
-
Dear experts, Please show me how to redraw the background of static control (Group box) when its parent window has been set WS_CLIPCHILDREN style. Best regards.
You would draw the static control like any other I would imagine. If I remember correctly
WS_CLIPCHILDREN
prevents the parent window from painting anything underneath any child windows, which prevents flicker with any controls. It's frustrating being a genius and living the life of a moron!!! -
You would draw the static control like any other I would imagine. If I remember correctly
WS_CLIPCHILDREN
prevents the parent window from painting anything underneath any child windows, which prevents flicker with any controls. It's frustrating being a genius and living the life of a moron!!!Thanks for your response, When WS_CLIPCHILDREN is used, children windows have to do their painting themselves. Unfortunately, static controls, group box controls cannot draw their background. My temporary solution is setting the WS_EX_TRANSPARENT to these kinds of control (e.g. group box). Of course, they will flick, but the others can enjoy flicker-free. So, as what I said, I still used WS_CLIPCHILDREN to prevent flicker except static, group box controls. I'm still waiting for a complete solution. Thanks again.