Transparent checkbox
-
I want to create some checkboxes dynamicaly from code and I want them tranparent. The problem is that I tried to create them from resource with the trasparent atribute (WS_EX_TRASPARENT) but it still didn't work. Anyway my problem is to create them dynamically. Any ideas, sugestions ?
-
I want to create some checkboxes dynamicaly from code and I want them tranparent. The problem is that I tried to create them from resource with the trasparent atribute (WS_EX_TRASPARENT) but it still didn't work. Anyway my problem is to create them dynamically. Any ideas, sugestions ?
WS_EX_TRASPARENT style does not make it transparent, just tells window to paint control after children. I am sure you can find plenty custom draw samples on this and others websites. brian
-
I want to create some checkboxes dynamicaly from code and I want them tranparent. The problem is that I tried to create them from resource with the trasparent atribute (WS_EX_TRASPARENT) but it still didn't work. Anyway my problem is to create them dynamically. Any ideas, sugestions ?
Handle
WM_CTLCOLORBTN
and in your handler, callSetBkMode(TRANSPARENT)
on the HDC that is passed in the message'swParam
. --Mike-- THERE IS NO THERE IS NO BUT THERE IS MAGIC PIXIE DUST BUSINESS GENIE CODE PROJECT :bob: Homepage | RightClick-Encrypt | 1ClickPicGrabber "Which comes first, the bug or the stress?" -- Chris Maunder