#include "wx/sizer.h"
#include "wx/dcclient.h"
#include "wx/log.h"
+#include "wx/image.h"
#ifdef __VMS
#pragma message disable nosimpint
}
wxRegion region;
- if (m_bmp.GetMask())
- region.Union(m_bmp);
- else
- region.Union(0,0, iconsize.x, iconsize.y);
+ region.Union(m_bmp);
// if the bitmap is smaller than the window, offset it:
if (winsize != iconsize)
{
if (!m_iconWnd)
return false;
- wxSize size(m_iconWnd->GetClientSize());
- m_iconWnd->PopupMenu(menu, size.x/2, size.y/2);
+ m_iconWnd->PopupMenu(menu);
return true;
}