jeudi 26 septembre 2019

Is it possible to disable a checkbox rather than hide it in an MFC dialog based application?

My program contains many check boxes arranged in a 20 x 15 manner. Some are not needed depending on other conditions. I have managed to hide them using "ShowWindow(False)", but it can get very confusing/messy because the neat arrangement of the 15 x 20 gets disturbed when many boxes are hidden.

Is there a way that I can keep the check boxes there, but grey them out and disable them rather than hide them completely?




Aucun commentaire:

Enregistrer un commentaire