]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/msw/nonownedwnd.h
Don't create multiple parent-less top level frames in layout sample.
[wxWidgets.git] / include / wx / msw / nonownedwnd.h
index b9528dbc883d8f43b68adf5cb95f8dfc95cbd019..260c81ceb312cad0594b0dc1deae811fd9c027aa 100644 (file)
@@ -11,6 +11,8 @@
 #ifndef _WX_MSW_NONOWNEDWND_H_
 #define _WX_MSW_NONOWNEDWND_H_
 
+class wxNonOwnedWindowShapeImpl;
+
 // ----------------------------------------------------------------------------
 // wxNonOwnedWindow
 // ----------------------------------------------------------------------------
 class WXDLLIMPEXP_CORE wxNonOwnedWindow : public wxNonOwnedWindowBase
 {
 public:
-#ifndef __WXWINCE__
-    virtual bool SetShape(const wxRegion& region);
-#endif // !__WXWINCE__
+    wxNonOwnedWindow();
+    virtual ~wxNonOwnedWindow();
+
+protected:
+    virtual bool DoClearShape();
+    virtual bool DoSetRegionShape(const wxRegion& region);
+#if wxUSE_GRAPHICS_CONTEXT
+    virtual bool DoSetPathShape(const wxGraphicsPath& path);
+
+private:
+    wxNonOwnedWindowShapeImpl* m_shapeImpl;
+#endif // wxUSE_GRAPHICS_CONTEXT
+
+    wxDECLARE_NO_COPY_CLASS(wxNonOwnedWindow);
 };
 
 #endif // _WX_MSW_NONOWNEDWND_H_