]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/generic/propdlg.h
added wx_truncate_cast and use it (sometimes instead of wx_static_cast) to explicitel...
[wxWidgets.git] / include / wx / generic / propdlg.h
index 9559d8dee020e3f2b75543966a729dba4c3908f0..ec63003b14575e570ef8e9f625f1e8a3ffed6adb 100644 (file)
 #pragma interface "propdlg.h"
 #endif
 
+#include "wx/defs.h"
+
+#if wxUSE_BOOKCTRL
+
 class WXDLLEXPORT wxBookCtrlBase;
 
 //-----------------------------------------------------------------------------
@@ -48,7 +52,7 @@ class WXDLLEXPORT wxBookCtrlBase;
 // kind of book control.
 //-----------------------------------------------------------------------------
 
-class WXDLLEXPORT wxPropertySheetDialog : public wxDialog
+class WXDLLIMPEXP_ADV wxPropertySheetDialog : public wxDialog
 {
 public:
     wxPropertySheetDialog() : wxDialog() { Init(); }
@@ -71,8 +75,6 @@ public:
                        long style = wxDEFAULT_DIALOG_STYLE,
                        const wxString& name = wxDialogNameStr);
 
-    void Init();
-
 //// Accessors
 
     // Set and get the notebook
@@ -100,12 +102,21 @@ public:
     // Adds the book control to the inner sizer.
     virtual void AddBookCtrl(wxSizer* sizer);
 
+    // Set the focus
+    void OnActivate(wxActivateEvent& event);
+
+private:
+    void Init();
+
 protected:
     wxBookCtrlBase* m_bookCtrl;
     wxSizer*        m_innerSizer; // sizer for extra space
 
     DECLARE_DYNAMIC_CLASS(wxPropertySheetDialog)
+    DECLARE_EVENT_TABLE()
 };
 
+#endif // wxUSE_BOOKCTRL
+
 #endif // _WX_PROPDLG_H_