#include "wx/dcclient.h"
#include "wx/image.h"
+#ifndef __WXMSW__
+ #include "../sample.xpm"
+#endif
// ----------------------------------------------------------------------------
// constants
{
static const char *names[] =
{
+ "none",
"roll to left",
"roll to right",
"roll to top",
: wxFrame(NULL, wxID_ANY, "wxWidgets Shaped Sample",
wxDefaultPosition, wxSize(200, 100))
{
+ SetIcon(wxICON(sample));
+
wxMenuBar * const mbar = new wxMenuBar;
wxMenu * const menuFrames = new wxMenu;
menuFrames->Append(Show_Shaped, "Show &shaped window\tCtrl-S");
return;
}
- new EffectFrame(this, eff,1000);
+ new EffectFrame(this, eff, 1000);
}
// ----------------------------------------------------------------------------
)
{
m_hasShape = false;
- m_bmp = wxBitmap(_T("star.png"), wxBITMAP_TYPE_PNG);
+ m_bmp = wxBitmap(wxT("star.png"), wxBITMAP_TYPE_PNG);
SetSize(wxSize(m_bmp.GetWidth(), m_bmp.GetHeight()));
SetToolTip(wxT("Right-click to close"));
SetWindowShape();