Set HICON and its parameters in one call

To avoid separate calls to SetSize() function after calling SetHICON() use newly implemented InitFromHICON() function which allows set HICON together with its parameters in one call.
This commit is contained in:
Artur Wieczorek
2018-09-11 21:50:22 +02:00
parent 97f73acddb
commit 5115fe31ef
3 changed files with 25 additions and 11 deletions

View File

@@ -71,6 +71,7 @@ public:
void SetHICON(WXHICON icon) { SetHandle((WXHANDLE)icon); }
WXHICON GetHICON() const { return (WXHICON)GetHandle(); }
bool InitFromHICON(WXHICON icon, int width, int height);
// create from bitmap (which should have a mask unless it's monochrome):
// there shouldn't be any implicit bitmap -> icon conversion (i.e. no