OS/2 update for wxUniv merge.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10873 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Webster
2001-07-06 21:45:11 +00:00
parent cf1dfa6b8f
commit 210a651b4f
25 changed files with 149 additions and 174 deletions

View File

@@ -69,6 +69,10 @@ protected:
// the margins around the bitmap // the margins around the bitmap
int m_marginX, int m_marginX,
m_marginY; m_marginY;
private:
// Prevent Virtual function hiding warnings
void SetLabel(const wxString& rsLabel)
{ wxWindowBase::SetLabel(rsLabel); }
}; };
#if defined(__WXUNIVERSAL__) #if defined(__WXUNIVERSAL__)

View File

@@ -318,6 +318,28 @@ protected:
#endif #endif
#elif defined(__WXPM__) #elif defined(__WXPM__)
#include "wx/os2/frame.h" #include "wx/os2/frame.h"
#ifndef __WXUNIVERSAL__
class WXDLLEXPORT wxFrame : public wxFrameOS2
{
public:
// construction
wxFrame() { Init(); }
wxFrame(wxWindow *parent,
wxWindowID id,
const wxString& title,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE,
const wxString& name = wxFrameNameStr)
{
Init();
Create(parent, id, title, pos, size, style, name);
}
DECLARE_DYNAMIC_CLASS(wxFrame)
};
#endif
#elif defined(__WXSTUBS__) #elif defined(__WXSTUBS__)
#include "wx/stubs/frame.h" #include "wx/stubs/frame.h"
#endif #endif

View File

@@ -189,6 +189,10 @@ protected:
friend wxListMainWindow; friend wxListMainWindow;
private: private:
// Virtual function hiding supression
void Update(void)
{ wxWindowBase::Update(); }
// create the header window // create the header window
void CreateHeaderWindow(); void CreateHeaderWindow();

View File

@@ -116,6 +116,10 @@ private:
class WXDLLEXPORT wxWindowDisabler *m_winDisabler; class WXDLLEXPORT wxWindowDisabler *m_winDisabler;
DECLARE_EVENT_TABLE() DECLARE_EVENT_TABLE()
private:
// Virtual function hiding supression
void Update()
{ wxWindowBase::Update(); }
}; };
#endif #endif

View File

@@ -28,26 +28,6 @@ class WXDLLEXPORT wxAcceleratorTable;
// Hold no key down // Hold no key down
#define wxACCEL_NORMAL 0x00 #define wxACCEL_NORMAL 0x00
class WXDLLEXPORT wxAcceleratorEntry
{
public:
wxAcceleratorEntry(int flags = 0, int keyCode = 0, int cmd = 0)
{
m_flags = flags; m_keyCode = keyCode; m_command = cmd;
}
inline void Set(int flags, int keyCode, int cmd)
{ m_flags = flags; m_keyCode = keyCode; m_command = cmd; }
inline int GetFlags() const { return m_flags; }
inline int GetKeyCode() const { return m_keyCode; }
inline int GetCommand() const { return m_command; }
int m_flags;
int m_keyCode; // ASCII or virtual keycode
int m_command; // Command id to generate
};
class WXDLLEXPORT wxAcceleratorTable: public wxObject class WXDLLEXPORT wxAcceleratorTable: public wxObject
{ {
DECLARE_DYNAMIC_CLASS(wxAcceleratorTable) DECLARE_DYNAMIC_CLASS(wxAcceleratorTable)

View File

@@ -18,7 +18,7 @@ WXDLLEXPORT_DATA(extern const char*) wxButtonNameStr;
#define wxDEFAULT_BUTTON_MARGIN 4 #define wxDEFAULT_BUTTON_MARGIN 4
class WXDLLEXPORT wxBitmapButton: public wxButton class WXDLLEXPORT wxBitmapButton: public wxBitmapButtonBase
{ {
DECLARE_DYNAMIC_CLASS(wxBitmapButton) DECLARE_DYNAMIC_CLASS(wxBitmapButton)
public: public:

View File

@@ -17,9 +17,8 @@
WXDLLEXPORT_DATA(extern const char*) wxButtonNameStr; WXDLLEXPORT_DATA(extern const char*) wxButtonNameStr;
// Pushbutton // Pushbutton
class WXDLLEXPORT wxButton: public wxControl class WXDLLEXPORT wxButton: public wxButtonBase
{ {
DECLARE_DYNAMIC_CLASS(wxButton)
public: public:
inline wxButton() {} inline wxButton() {}
inline wxButton(wxWindow *parent, wxWindowID id, const wxString& label, inline wxButton(wxWindow *parent, wxWindowID id, const wxString& label,
@@ -60,6 +59,8 @@ protected:
bool SendClickEvent(); bool SendClickEvent();
virtual wxSize DoGetBestSize() const; virtual wxSize DoGetBestSize() const;
private:
DECLARE_DYNAMIC_CLASS(wxButton)
}; };
#endif #endif

View File

@@ -18,10 +18,8 @@ WXDLLEXPORT_DATA(extern const char*) wxCheckBoxNameStr;
// Checkbox item (single checkbox) // Checkbox item (single checkbox)
class WXDLLEXPORT wxBitmap; class WXDLLEXPORT wxBitmap;
class WXDLLEXPORT wxCheckBox: public wxControl class WXDLLEXPORT wxCheckBox : public wxCheckBoxBase
{ {
DECLARE_DYNAMIC_CLASS(wxCheckBox)
public: public:
inline wxCheckBox() { } inline wxCheckBox() { }
inline wxCheckBox(wxWindow *parent, wxWindowID id, const wxString& label, inline wxCheckBox(wxWindow *parent, wxWindowID id, const wxString& label,
@@ -54,6 +52,8 @@ class WXDLLEXPORT wxCheckBox: public wxControl
protected: protected:
virtual wxSize DoGetBestSize() const; virtual wxSize DoGetBestSize() const;
private:
DECLARE_DYNAMIC_CLASS(wxCheckBox)
}; };
class WXDLLEXPORT wxBitmapCheckBox: public wxCheckBox class WXDLLEXPORT wxBitmapCheckBox: public wxCheckBox

View File

@@ -157,6 +157,8 @@ public:
const wxBitmap& GetSelectedBitmap(void) const { return m_vSelectedBitmap; } const wxBitmap& GetSelectedBitmap(void) const { return m_vSelectedBitmap; }
wxBitmap& GetSelectedBitmap(void) { return m_vSelectedBitmap; } wxBitmap& GetSelectedBitmap(void) { return m_vSelectedBitmap; }
void UpdateClipBox();
protected: protected:
virtual void DoFloodFill( wxCoord vX virtual void DoFloodFill( wxCoord vX
,wxCoord vY ,wxCoord vY

View File

@@ -52,15 +52,18 @@ class WXDLLEXPORT wxClientDC : public wxWindowDC
{ {
public: public:
wxClientDC(); wxClientDC();
virtual ~wxClientDC();
// Create a DC corresponding to the client area of the window
wxClientDC(wxWindow *win); wxClientDC(wxWindow *win);
protected:
void InitDC(void);
private: private:
DECLARE_DYNAMIC_CLASS(wxClientDC) DECLARE_DYNAMIC_CLASS(wxClientDC)
}; // end of CLASS wxClientDC }; // end of CLASS wxClientDC
class WXDLLEXPORT wxPaintDC : public wxWindowDC class WXDLLEXPORT wxPaintDC : public wxClientDC
{ {
public: public:
wxPaintDC(); wxPaintDC();

View File

@@ -17,12 +17,12 @@
// //
#include "wx/os2/wxOs2.h" #include "wx/os2/wxOs2.h"
class WXDLLEXPORT wxFrame : public wxFrameBase class WXDLLEXPORT wxFrameOS2 : public wxFrameBase
{ {
public: public:
// construction // construction
wxFrame() { Init(); } wxFrameOS2() { Init(); }
wxFrame( wxWindow* pParent wxFrameOS2( wxWindow* pParent
,wxWindowID vId ,wxWindowID vId
,const wxString& rsTitle ,const wxString& rsTitle
,const wxPoint& rPos = wxDefaultPosition ,const wxPoint& rPos = wxDefaultPosition
@@ -45,7 +45,7 @@ public:
,const wxString& rsName = wxFrameNameStr ,const wxString& rsName = wxFrameNameStr
); );
virtual ~wxFrame(); virtual ~wxFrameOS2();
// implement base class pure virtuals // implement base class pure virtuals
virtual void Maximize(bool bMaximize = TRUE); virtual void Maximize(bool bMaximize = TRUE);
@@ -242,7 +242,7 @@ private:
SWP m_vSwpToolBar; SWP m_vSwpToolBar;
DECLARE_EVENT_TABLE() DECLARE_EVENT_TABLE()
DECLARE_DYNAMIC_CLASS(wxFrame) DECLARE_DYNAMIC_CLASS(wxFrameOS2)
}; };
#endif #endif

View File

@@ -73,12 +73,6 @@ public:
} }
#endif // wxUSE_MENU_CALLBACK #endif // wxUSE_MENU_CALLBACK
//
// OS2-specific
//
bool ProcessCommand(wxCommandEvent& rEvent);
// //
// Implementation only from now on // Implementation only from now on
// ------------------------------- // -------------------------------
@@ -101,12 +95,6 @@ public:
// //
WXHMENU GetHMenu() const { return m_hMenu; } WXHMENU GetHMenu() const { return m_hMenu; }
//
// Attach/detach menu to/from wxMenuBar
//
void Attach(wxMenuBar* pMenubar);
void Detach(void);
#if wxUSE_ACCEL #if wxUSE_ACCEL
// //
// Called by wxMenuBar to build its accel table from the accels of all menus // Called by wxMenuBar to build its accel table from the accels of all menus
@@ -254,22 +242,8 @@ public:
// Implementation from now on // Implementation from now on
// //
WXHMENU Create(void); WXHMENU Create(void);
void Detach(void); virtual void Detach(void);
virtual void Attach(wxFrame* pFrame);
//
// Returns TRUE if we're attached to a frame
//
bool IsAttached(void) const { return m_pMenuBarFrame != NULL; }
//
// Get the frame we live in
//
wxFrame * GetFrame(void) const { return m_pMenuBarFrame; }
//
// Attach to a frame
//
void Attach(wxFrame* pFrame);
#if wxUSE_ACCEL #if wxUSE_ACCEL
// //
@@ -305,7 +279,6 @@ protected:
wxArrayString m_titles; wxArrayString m_titles;
wxFrame* m_pMenuBarFrame;
WXHMENU m_hMenu; WXHMENU m_hMenu;
#if wxUSE_ACCEL #if wxUSE_ACCEL
@@ -315,6 +288,8 @@ protected:
wxAcceleratorTable m_vAccelTable; wxAcceleratorTable m_vAccelTable;
#endif // wxUSE_ACCEL #endif // wxUSE_ACCEL
wxFrame* m_pMenuBarFrame;
private: private:
// //
// Virtual function hiding suppression // Virtual function hiding suppression

View File

@@ -60,10 +60,6 @@ public:
virtual void Check(bool bDoCheck = TRUE); virtual void Check(bool bDoCheck = TRUE);
virtual bool IsChecked(void) const; virtual bool IsChecked(void) const;
#if wxUSE_ACCEL
virtual wxAcceleratorEntry* GetAccel(void) const;
#endif // wxUSE_ACCEL
// unfortunately needed to resolve ambiguity between // unfortunately needed to resolve ambiguity between
// wxMenuItemBase::IsCheckable() and wxOwnerDrawn::IsCheckable() // wxMenuItemBase::IsCheckable() and wxOwnerDrawn::IsCheckable()
bool IsCheckable(void) const { return wxMenuItemBase::IsCheckable(); } bool IsCheckable(void) const { return wxMenuItemBase::IsCheckable(); }

View File

@@ -42,14 +42,5 @@ protected:
wxWindow* m_pParent; wxWindow* m_pParent;
}; // end of CLASS wxMessageDialog }; // end of CLASS wxMessageDialog
int WXDLLEXPORT wxMessageBox( const wxString& rsMessage
,const wxString& rsCaption = wxMessageBoxCaptionStr
,long lStyle = wxOK|wxCENTRE
,wxWindow* pParent = NULL
,int nX = -1
,int nY = -1
);
#endif #endif
// _WX_MSGBOXDLG_H_ // _WX_MSGBOXDLG_H_

View File

@@ -17,7 +17,7 @@
#include "wx/dynarray.h" #include "wx/dynarray.h"
#include "wx/string.h" #include "wx/string.h"
#include "wx/control.h" #include "wx/notebook.h"
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// types // types
@@ -38,7 +38,7 @@ WX_DEFINE_ARRAY(wxNotebookPage *, wxArrayNBPages);
// FIXME this class should really derive from wxTabCtrl, but the interface is not // FIXME this class should really derive from wxTabCtrl, but the interface is not
// exactly the same, so I can't do it right now and instead we reimplement // exactly the same, so I can't do it right now and instead we reimplement
// part of wxTabCtrl here // part of wxTabCtrl here
class WXDLLEXPORT wxNotebook : public wxControl class WXDLLEXPORT wxNotebook : public wxNotebookBase
{ {
public: public:
// ctors // ctors

View File

@@ -12,14 +12,12 @@
#ifndef _WX_RADIOBOX_H_ #ifndef _WX_RADIOBOX_H_
#define _WX_RADIOBOX_H_ #define _WX_RADIOBOX_H_
#include "wx/control.h"
WXDLLEXPORT_DATA(extern const char*) wxRadioBoxNameStr; WXDLLEXPORT_DATA(extern const char*) wxRadioBoxNameStr;
// List box item // List box item
class WXDLLEXPORT wxBitmap ; class WXDLLEXPORT wxBitmap ;
class WXDLLEXPORT wxRadioBox: public wxControl class WXDLLEXPORT wxRadioBox: public wxControl, public wxRadioBoxBase
{ {
DECLARE_DYNAMIC_CLASS(wxRadioBox) DECLARE_DYNAMIC_CLASS(wxRadioBox)
public: public:
@@ -53,7 +51,11 @@ public:
int FindString(const wxString& s) const; int FindString(const wxString& s) const;
void SetSelection(int N); void SetSelection(int N);
int GetSelection() const; int GetSelection() const;
virtual int GetCount() const;
wxString GetString(int N) const; wxString GetString(int N) const;
virtual void SetString(int n, const wxString& label);
virtual int GetColumnCount() const;
virtual int GetRowCount() const;
void GetSize(int *x, int *y) const; void GetSize(int *x, int *y) const;
void GetPosition(int *x, int *y) const; void GetPosition(int *x, int *y) const;

View File

@@ -51,47 +51,5 @@ class WXDLLEXPORT wxRadioButton: public wxControl
void Command(wxCommandEvent& event); void Command(wxCommandEvent& event);
}; };
// Not implemented
class WXDLLEXPORT wxBitmap ;
WXDLLEXPORT_DATA(extern const char*) wxBitmapRadioButtonNameStr;
class WXDLLEXPORT wxBitmapRadioButton: public wxRadioButton
{
DECLARE_DYNAMIC_CLASS(wxBitmapRadioButton)
protected:
wxBitmap *theButtonBitmap;
public:
inline wxBitmapRadioButton() { theButtonBitmap = NULL; }
inline wxBitmapRadioButton(wxWindow *parent, wxWindowID id,
const wxBitmap *label,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0,
#if wxUSE_VALIDATORS
const wxValidator& validator = wxDefaultValidator,
#endif
const wxString& name = wxBitmapRadioButtonNameStr)
{
Create(parent, id, label, pos, size, style, validator, name);
}
bool Create(wxWindow *parent, wxWindowID id,
const wxBitmap *label,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0,
#if wxUSE_VALIDATORS
const wxValidator& validator = wxDefaultValidator,
#endif
const wxString& name = wxBitmapRadioButtonNameStr);
virtual void SetLabel(const wxBitmap *label);
virtual void SetValue(bool val) ;
virtual bool GetValue() const ;
private:
// virtual function hiding suppression, do not use
virtual void SetLabel(const wxString& label)
{ wxRadioButton::SetLabel(label); };
};
#endif #endif
// _WX_RADIOBUT_H_ // _WX_RADIOBUT_H_

View File

@@ -12,12 +12,12 @@
#ifndef _WX_SCROLBAR_H_ #ifndef _WX_SCROLBAR_H_
#define _WX_SCROLBAR_H_ #define _WX_SCROLBAR_H_
#include "wx/control.h" #include "wx/scrolbar.h"
WXDLLEXPORT_DATA(extern const char*) wxScrollBarNameStr; WXDLLEXPORT_DATA(extern const char*) wxScrollBarNameStr;
// Scrollbar item // Scrollbar item
class WXDLLEXPORT wxScrollBar: public wxControl class WXDLLEXPORT wxScrollBar: public wxScrollBarBase
{ {
DECLARE_DYNAMIC_CLASS(wxScrollBar) DECLARE_DYNAMIC_CLASS(wxScrollBar)

View File

@@ -34,6 +34,8 @@
#define wxUSE_NET_API 1 // Utilize OS/2's UPM netapi's #define wxUSE_NET_API 1 // Utilize OS/2's UPM netapi's
#define wxUSE_DATETIME 1 // Utilize the date-time classes
#define wxUSE_CONFIG 1 #define wxUSE_CONFIG 1
// Use wxConfig, with CreateConfig in wxApp // Use wxConfig, with CreateConfig in wxApp
@@ -74,40 +76,62 @@
#define wxUSE_DRAG_AND_DROP 1 #define wxUSE_DRAG_AND_DROP 1
// 0 for no drag and drop // 0 for no drag and drop
#define wxUSE_CONTROLS 1 // Do not change
#define wxUSE_POPUPWIN 0 // OS/2 does not use this
// Recommended setting: 1
#define wxUSE_BUTTON 1 // wxButton
#define wxUSE_BMPBUTTON 1 // wxBitmapButton
#define wxUSE_CALENDARCTRL 1 // wxCalendarCtrl
#define wxUSE_CHECKBOX 1 // wxCheckBox
#define wxUSE_CHECKLISTBOX 1 // wxCheckListBox (requires wxUSE_OWNER_DRAWN)
#define wxUSE_CHOICE 1 // wxChoice
#define wxUSE_COMBOBOX 1 // wxComboBox
#define wxUSE_GAUGE 1 // wxGauge
#define wxUSE_LISTBOX 1 // wxListBox
#define wxUSE_LISTCTRL 1 // wxListCtrl
#define wxUSE_RADIOBOX 1 // wxRadioBox
#define wxUSE_RADIOBTN 1 // wxRadioButton
#define wxUSE_SCROLLBAR 1 // wxScrollBar
#define wxUSE_SLIDER 1 // wxSlider
#define wxUSE_SPINBTN 1 // wxSpinButton
#define wxUSE_SPINCTRL 1 // wxSpinCtrl
#define wxUSE_STATBOX 1 // wxStaticBox
#define wxUSE_STATLINE 1 // wxStaticLine
#define wxUSE_STATTEXT 1 // wxStaticText
#define wxUSE_STATBMP 1 // wxStaticBitmap
#define wxUSE_TEXTCTRL 1 // wxTextCtrl
#define wxUSE_TOGGLEBTN 1 // requires wxButton
#define wxUSE_TREECTRL 1 // wxTreeCtrl
#define wxUSE_CHOICEDLG 1
#define wxUSE_COLOURDLG 1
#define wxUSE_DATAOBJ 1
#define wxUSE_FILEDLG 1
#define wxUSE_FONTDLG 1
#define wxUSE_FONTMAP 1
#define wxUSE_GRID 1
#define wxUSE_IMAGLIST 1
#define wxUSE_LOGGUI 1
#define wxUSE_LOGWINDOW 1
#define wxUSE_LOG_DIALOG 1
#define wxUSE_MIMETYPE 1
#define wxUSE_MSGDLG 1
#define wxUSE_NOTEBOOK 1
#define wxUSE_SPLITTER 1
#define wxUSE_STOPWATCH 1
#define wxUSE_TAB_DIALOG 1
#define wxUSE_WXHTML_HELP 1
#define wxUSE_BUTTONBAR 1 #define wxUSE_BUTTONBAR 1
// Define 1 to use buttonbar classes (enhanced toolbar // Define 1 to use buttonbar classes (enhanced toolbar
// for MS Windows) // for MS Windows)
#define wxUSE_GAUGE 1
// Define 1 to use Microsoft's gauge (Windows)
// or Bull's gauge (Motif) library (both in contrib).
#define wxUSE_COMBOBOX 1
// Define 1 to use COMBOXBOX control (Windows)
// or FWW's ComboBox widget (Motif).
#define wxUSE_CHOICE 1
// Define 1 to use CHOICE
#define wxUSE_RADIOBUTTON 1 #define wxUSE_RADIOBUTTON 1
// Define 1 to use radio button control // Define 1 to use radio button control
#define wxUSE_RADIOBTN 1
// Unfortunately someone introduced this one, too
#define wxUSE_SCROLLBAR 1 #define wxUSE_SCROLLBAR 1
// Define 1 to compile contributed wxScrollBar class // Define 1 to compile contributed wxScrollBar class
#define wxUSE_CHECKBOX 1
// Define 1 to compile checkbox
#define wxUSE_LISTBOX 1
// Define 1 to compile listbox
#define wxUSE_SPINBTN 1
// Define 1 to compile spin button
// use wxStaticLine class (separator line in the dialog)?
#define wxUSE_STATLINE 1
#define wxUSE_CHECKLISTBOX 1
// Define 1 to compile check listbox
#define wxUSE_CARET 1 #define wxUSE_CARET 1
// Define 1 to use wxCaret class // Define 1 to use wxCaret class
#define wxUSE_TREECTRL 1 #define wxUSE_TREECTRL 1
@@ -252,6 +276,7 @@
#define wxUSE_ZIPSTREAM 1 #define wxUSE_ZIPSTREAM 1
// input stream for reading from zip archives // input stream for reading from zip archives
#define wxUSE_TIMER 1 // use the timer class
/* /*
* Finer detail * Finer detail
* *
@@ -265,6 +290,8 @@
// use wxFile class - required by i18n code, wxConfig and others - recommended // use wxFile class - required by i18n code, wxConfig and others - recommended
#define wxUSE_FILE 1 #define wxUSE_FILE 1
#define wxUSE_FFILE 1
// use wxTextFile class: requires wxFile, required by wxConfig // use wxTextFile class: requires wxFile, required by wxConfig
#define wxUSE_TEXTFILE 1 #define wxUSE_TEXTFILE 1

View File

@@ -36,7 +36,6 @@
#define wxUSE_CONFIG 1 #define wxUSE_CONFIG 1
// Use wxConfig, with CreateConfig in wxApp // Use wxConfig, with CreateConfig in wxApp
#define wxUSE_POSTSCRIPT 1 #define wxUSE_POSTSCRIPT 1
// 0 for no PostScript device context // 0 for no PostScript device context
#define wxUSE_AFM_FOR_POSTSCRIPT 1 #define wxUSE_AFM_FOR_POSTSCRIPT 1

View File

@@ -17,7 +17,7 @@
WXDLLEXPORT_DATA(extern const char*) wxSliderNameStr; WXDLLEXPORT_DATA(extern const char*) wxSliderNameStr;
// Slider // Slider
class WXDLLEXPORT wxSlider: public wxControl class WXDLLEXPORT wxSlider: public wxSliderBase
{ {
DECLARE_DYNAMIC_CLASS(wxSlider) DECLARE_DYNAMIC_CLASS(wxSlider)

View File

@@ -21,9 +21,8 @@
WXDLLEXPORT_DATA(extern const char*) wxStaticBitmapNameStr; WXDLLEXPORT_DATA(extern const char*) wxStaticBitmapNameStr;
class WXDLLEXPORT wxStaticBitmap: public wxControl class WXDLLEXPORT wxStaticBitmap : public wxStaticBitmapBase
{ {
DECLARE_DYNAMIC_CLASS(wxStaticBitmap)
public: public:
inline wxStaticBitmap() { Init(); } inline wxStaticBitmap() { Init(); }
@@ -56,7 +55,7 @@ class WXDLLEXPORT wxStaticBitmap: public wxControl
// vice versa // vice versa
const wxIcon& GetIcon() const const wxIcon& GetIcon() const
{ wxASSERT( m_bIsIcon ); return *(wxIcon *)m_pImage; } { wxASSERT( m_bIsIcon ); return *(wxIcon *)m_pImage; }
const wxBitmap& GetBitmap() const wxBitmap GetBitmap() const
{ wxASSERT( !m_bIsIcon ); return *(wxBitmap *)m_pImage; } { wxASSERT( !m_bIsIcon ); return *(wxBitmap *)m_pImage; }
// overriden base class virtuals // overriden base class virtuals
@@ -76,6 +75,8 @@ protected:
// we can have either an icon or a bitmap // we can have either an icon or a bitmap
bool m_bIsIcon; bool m_bIsIcon;
wxGDIImage* m_pImage; wxGDIImage* m_pImage;
private:
DECLARE_DYNAMIC_CLASS(wxStaticBitmap)
}; };
#endif #endif

View File

@@ -17,7 +17,7 @@
WXDLLEXPORT_DATA(extern const char*) wxStaticBoxNameStr; WXDLLEXPORT_DATA(extern const char*) wxStaticBoxNameStr;
// Group box // Group box
class WXDLLEXPORT wxStaticBox: public wxControl class WXDLLEXPORT wxStaticBox : public wxStaticBoxBase
{ {
DECLARE_DYNAMIC_CLASS(wxStaticBox) DECLARE_DYNAMIC_CLASS(wxStaticBox)

View File

@@ -44,15 +44,15 @@ enum
// wxWindow declaration for OS/2 PM // wxWindow declaration for OS/2 PM
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
class WXDLLEXPORT wxWindow : public wxWindowBase class WXDLLEXPORT wxWindowOS2 : public wxWindowBase
{ {
public: public:
wxWindow() wxWindowOS2()
{ {
Init(); Init();
} }
wxWindow( wxWindow* pParent wxWindowOS2( wxWindow* pParent
,wxWindowID vId ,wxWindowID vId
,const wxPoint& rPos = wxDefaultPosition ,const wxPoint& rPos = wxDefaultPosition
,const wxSize& rSize = wxDefaultSize ,const wxSize& rSize = wxDefaultSize
@@ -70,7 +70,7 @@ public:
); );
} }
virtual ~wxWindow(); virtual ~wxWindowOS2();
bool Create( wxWindow* pParent bool Create( wxWindow* pParent
,wxWindowID vId ,wxWindowID vId
@@ -550,8 +550,8 @@ private:
// the helper functions used by HandleChar/KeyXXX methods // the helper functions used by HandleChar/KeyXXX methods
wxKeyEvent CreateKeyEvent(wxEventType evType, int id, WXLPARAM lp) const; wxKeyEvent CreateKeyEvent(wxEventType evType, int id, WXLPARAM lp) const;
DECLARE_DYNAMIC_CLASS(wxWindow); DECLARE_DYNAMIC_CLASS(wxWindowOS2);
DECLARE_NO_COPY_CLASS(wxWindow); DECLARE_NO_COPY_CLASS(wxWindowOS2)
DECLARE_EVENT_TABLE() DECLARE_EVENT_TABLE()
private: private:
HWND m_hWndScrollBarHorz; HWND m_hWndScrollBarHorz;

View File

@@ -981,6 +981,12 @@ private:
#endif // wxUniv #endif // wxUniv
#include "wx/mac/window.h" #include "wx/mac/window.h"
#elif defined(__WXPM__) #elif defined(__WXPM__)
#ifdef __WXUNIVERSAL__
#define wxWindowNative wxWindowOS2
#else // !wxUniv
#define wxWindowOS2 wxWindow
#define sm_classwxWindowOS2 sm_classwxWindow
#endif // wxUniv/!wxUniv
#include "wx/os2/window.h" #include "wx/os2/window.h"
#endif #endif