int Pusher::GetVisualState() const { //todo: add return !IsShowEnabled() ? CTRL_DISABLED : IsPush() ? CTRL_PRESSED : HasMouse() ? CTRL_HOT : pseudoDisable ? CTRL_DISABLED : CTRL_NORMAL; }
class Pusher : public Ctrl { public: //todo: add bool pseudoDisable; ...
Pusher::Pusher() { ... pseudoDisable = false; }
btn_.pseudoDisable = true; btn_.Refresh();
Report message to a moderator