Show the shaped frame with start shape initially in the sample.

It's not clear that setting the window shape actually works if the initial
shape is not set.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@76680 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2014-06-10 00:38:09 +00:00
parent 90c9afad59
commit 8a8fedf3a8

View File

@@ -386,7 +386,7 @@ ShapedFrame::ShapedFrame(wxFrame *parent)
| wxSTAY_ON_TOP | wxSTAY_ON_TOP
) )
{ {
m_shapeKind = Shape_None; m_shapeKind = Shape_Star;
m_bmp = wxBitmap(wxT("star.png"), wxBITMAP_TYPE_PNG); m_bmp = wxBitmap(wxT("star.png"), wxBITMAP_TYPE_PNG);
SetSize(wxSize(m_bmp.GetWidth(), m_bmp.GetHeight())); SetSize(wxSize(m_bmp.GetWidth(), m_bmp.GetHeight()));
SetToolTip(wxT("Right-click to close, double click to cycle shape")); SetToolTip(wxT("Right-click to close, double click to cycle shape"));