when i add a CIPAddressCtrl to my form, and i click the disable check box, it doesn't go gray. i want to gray it while it is disabled...how do you gray it?
Do not disable CIPAddressCtrl from your resource editor..just keep it enables... while within your code / InitDialog call : CIPAddressCtrl::EnableWindow(false);
e.g.
m_IPCtrl.EnableWindow(false); //m_IPCtrl is control variable of your CIPAddressCtrl.
This will disable as well gray out your IP address control.
when you disable CIPAddressCtrl it just disables it that means prevent access to input values but keeps background color white.....
otherwise if you want to change background color of IP address control as custom when disabled or greyed then yu need to subclass it and handle the WM_ERASEBKGND and WM_PAINT messages as well as the WM_CTLCOLOREDIT message from its children.
-MAHESH
0
Question has a verified solution.
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Do not disable CIPAddressCtrl from your resource editor..just keep it enables... while within your code / InitDialog call : CIPAddressCtrl::EnableWind
e.g.
m_IPCtrl.EnableWindow(fals
This will disable as well gray out your IP address control.
-MAHESH