X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/47a8a4d5cc3e8fcb2efee4787cb9d244104beea5..7d3f6b4ded6aa412cb1cc306fef478955d448c5b:/include/wx/palmos/window.h diff --git a/include/wx/palmos/window.h b/include/wx/palmos/window.h index 81cddb3611..4be644902d 100644 --- a/include/wx/palmos/window.h +++ b/include/wx/palmos/window.h @@ -27,7 +27,7 @@ // wxWindow declaration for Palm // --------------------------------------------------------------------------- -class WXDLLEXPORT wxWindowPalm : public wxWindowBase +class WXDLLIMPEXP_CORE wxWindowPalm : public wxWindowBase { public: wxWindowPalm() { Init(); } @@ -73,20 +73,12 @@ public: virtual void Refresh( bool eraseBackground = true, const wxRect *rect = NULL ); virtual void Update(); - virtual void Freeze(); - virtual void Thaw(); virtual bool SetCursor( const wxCursor &cursor ); virtual bool SetFont( const wxFont &font ); virtual int GetCharHeight() const; virtual int GetCharWidth() const; - virtual void GetTextExtent(const wxString& string, - int *x, int *y, - int *descent = (int *) NULL, - int *externalLeading = (int *) NULL, - const wxFont *theFont = (const wxFont *) NULL) - const; #if wxUSE_MENUS_NATIVE virtual bool DoPopupMenu( wxMenu *menu, int x, int y ); @@ -99,7 +91,7 @@ public: virtual int GetScrollThumb( int orient ) const; virtual int GetScrollRange( int orient ) const; virtual void ScrollWindow( int dx, int dy, - const wxRect* rect = (wxRect *) NULL ); + const wxRect* rect = NULL ); virtual bool ScrollLines(int lines); virtual bool ScrollPages(int pages); @@ -132,8 +124,9 @@ public: // simple accessors // ---------------- - virtual WXWINHANDLE GetWinHandle() const { return m_handle; } - virtual WXWidget GetHandle() const { return GetWinHandle(); } + WXHWND GetHWND() const { return m_hWnd; } + void SetHWND(WXHWND hWnd) { m_hWnd = hWnd; } + virtual WXWidget GetHandle() const { return GetHWND(); } // event handlers // -------------- @@ -208,7 +201,7 @@ public: protected: // the window handle - WXWINHANDLE m_handle; + WXHWND m_hWnd; WXFORMPTR FrameForm; WXFORMPTR GetFormPtr(); @@ -232,6 +225,11 @@ protected: WXHMENU m_hMenu; // Menu, if any // implement the base class pure virtuals + virtual void DoGetTextExtent(const wxString& string, + int *x, int *y, + int *descent = NULL, + int *externalLeading = NULL, + const wxFont *font = NULL) const; virtual void DoClientToScreen( int *x, int *y ) const; virtual void DoScreenToClient( int *x, int *y ) const; virtual void DoGetPosition( int *x, int *y ) const; @@ -270,11 +268,8 @@ private: bool HandleMoving(wxRect& rect); bool HandleJoystickEvent(WXUINT msg, int x, int y, WXUINT flags); - // number of calls to Freeze() minus number of calls to Thaw() - unsigned int m_frozenness; - DECLARE_DYNAMIC_CLASS(wxWindowPalm) - DECLARE_NO_COPY_CLASS(wxWindowPalm) + wxDECLARE_NO_COPY_CLASS(wxWindowPalm); DECLARE_EVENT_TABLE() };