i always fail with overloading operators...i use C++11 for be more easy.
can anyone explain to me how overloading operator?
inside of class label:
how i use it:Code:HWND& operator=(const label &test) { return this->hwnd; }
- SetWindowText() is for change the window caption;Code:SetWindowText(label1, "left mouse button down");
- label1 is 1 instance of label.
the SetWindowText() function, 1st parameter must recive a HWND value. but i mistake with overloading operator