Grey Out Controls in MFC
I was curious if there is an easy way to grey out a control in Visual C++ controls. I'm interested in greying out a CSpinButtonCtrl. I want the user to be able to see the control but not be able to use them. I checked the help files; there does not seem to be a built in function. Just checking if maybe I missed something or maybe someone has an idea around the situation. Thanks.
I've never used MFC yet, but in VisualBasic it was just simply something like
SpinButtonCtrl1.Enabled = False
So maybe look for something along those lines, while you search help files or look at all the methods/properties of the object.
SpinButtonCtrl1.Enabled = False
So maybe look for something along those lines, while you search help files or look at all the methods/properties of the object.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement