vendredi 15 décembre 2017

How to draw checkbox without 3d frame

I use the DrawFrameControl function to draw a checkbox:

DrawFrameControl(hdc, &r, DFC_BUTTON,  DFCS_CHECKED);

and this is result:

enter image description here

But I do not need a 3d frame, I need a simple 1-pixel frame like this:

enter image description here

if I pass to DrawFrameControl function a DFCS_FLAT flag, then I get a bold frame: enter image description here

Is there a way to draw a checkbox with a 1-pixel border?




Aucun commentaire:

Enregistrer un commentaire