git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48538
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// Set initial size to bitmap size (tray manager may and often will
// change it):
// Set initial size to bitmap size (tray manager may and often will
// change it):
- SetSize(wxSize(bmp.GetWidth(), bmp.GetHeight()));
+ SetClientSize(wxSize(bmp.GetWidth(), bmp.GetHeight()));
m_bmp = bmp;
// determine suitable bitmap size:
m_bmp = bmp;
// determine suitable bitmap size:
- wxSize winsize(GetSize());
+ wxSize winsize(GetClientSize());
wxSize bmpsize(m_bmp.GetWidth(), m_bmp.GetHeight());
wxSize iconsize(wxMin(winsize.x, bmpsize.x), wxMin(winsize.y, bmpsize.y));
wxSize bmpsize(m_bmp.GetWidth(), m_bmp.GetHeight());
wxSize iconsize(wxMin(winsize.x, bmpsize.x), wxMin(winsize.y, bmpsize.y));