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/trunk@76682 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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"));
|
||||||
|
Reference in New Issue
Block a user