I was wondering if anyone could give a good example of operator overloading. What I am trying is to have a function to set the state of windows controls, and i want it to accept any type of common control. Thanks
Jim Hewitt, Liberty Tax Service
Printable View
I was wondering if anyone could give a good example of operator overloading. What I am trying is to have a function to set the state of windows controls, and i want it to accept any type of common control. Thanks
Jim Hewitt, Liberty Tax Service
Do you want operator overloading or function overloading? If you want operator overloading, then which operator (+, -, =, etc.)?
If you meant function overloading:
BOOL SetState(CListbox& cl);
BOOL SetState(CEdit& ce);
BOOL SetState(CButton& cb);
BOOL SetState(CToolbar& ct);
Dave