]> git.saurik.com Git - wxWidgets.git/commitdiff
win32 miniframe added
authorVáclav Slavík <vslavik@fastmail.fm>
Fri, 6 Aug 1999 11:52:33 +0000 (11:52 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Fri, 6 Aug 1999 11:52:33 +0000 (11:52 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3299 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/msw/minifram.h
src/msw/minifram.cpp

index 97ba03c69adcbb7c8a62003cc775d732ed60b86f..9d1b228aac2fecbbd1a3e895112421299b4519ed 100644 (file)
 
 #include "wx/frame.h"
 
+#ifdef __WIN32__
+
+class WXDLLEXPORT wxMiniFrame: public wxFrame {
+
+  DECLARE_DYNAMIC_CLASS(wxMiniFrame)
+
+public:
+  inline wxMiniFrame(void) {}
+  inline wxMiniFrame(wxWindow *parent,
+           wxWindowID id,
+           const wxString& title,
+           const wxPoint& pos = wxDefaultPosition,
+           const wxSize& size = wxDefaultSize,
+           long style = wxDEFAULT_FRAME_STYLE,
+           const wxString& name = wxFrameNameStr)
+  {
+      Create(parent, id, title, pos, size, style | wxFRAME_TOOL_WINDOW | wxFRAME_FLOAT_ON_PARENT, name);
+  }
+
+protected:
+};
+
+
+#else
+
 class WXDLLEXPORT wxMiniFrame: public wxFrame {
 
   DECLARE_DYNAMIC_CLASS(wxMiniFrame)
@@ -42,5 +67,8 @@ public:
 protected:
 };
 
+#endif
+
+
 #endif
     // _WX_MINIFRAM_H_
index e40b0532f8ad1ae7dd32606d42dbc8cf6466d5b2..819e0b01d3e20bebfb8683d233a52a09d1101c70 100644 (file)
 #include "wx/utils.h"
 #endif
 
+
+#ifdef __WIN32__
+
+#include "wx/minifram.h"
+
+#if !USE_SHARED_LIBRARY
+IMPLEMENT_DYNAMIC_CLASS(wxMiniFrame, wxFrame)
+#endif
+
+
+#else
+
+
 #if wxUSE_ITSY_BITSY
 
 #include "wx/minifram.h"
@@ -1610,3 +1623,5 @@ void PASCAL DrawArrow( HDC hdc, LPRECT lprc, UINT uiStyle )
 }  // DrawArrow()   
 
 #endif // wxUSE_ITSY_BITSY
+
+#endif // __WIN32__