Style updates

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14354 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Webster
2002-02-22 23:30:31 +00:00
parent 229d3f1c1f
commit b9b1d6c8dd
19 changed files with 519 additions and 196 deletions

View File

@@ -106,6 +106,7 @@ public:
virtual void Freeze(void);
virtual void Update(void);
virtual void Thaw(void);
virtual void SetWindowStyleFlag(long lStyle);
virtual bool SetCursor(const wxCursor& rCursor);
virtual bool SetFont(const wxFont& rFont);
virtual int GetCharHeight(void) const;
@@ -253,6 +254,23 @@ public:
// PM only: TRUE if this control is part of the main control
virtual bool ContainsHWND(WXHWND WXUNUSED(hWnd)) const { return FALSE; };
// translate wxWindows style flags for this control into the PM style
// and optional extended style for the corresponding native control
//
// this is the function that should be overridden in the derived classes,
// but you will mostly use OS2GetCreateWindowFlags() below
virtual WXDWORD OS2GetStyle( long lFlags
,WXDWORD* pdwExstyle = NULL
) const;
// get the MSW window flags corresponding to wxWindows ones
//
// the functions returns the flags (WS_XXX) directly and puts the ext
// (WS_EX_XXX) flags into the provided pointer if not NULL
WXDWORD OS2GetCreateWindowFlags(WXDWORD* pdwExflags = NULL) const
{ return OS2GetStyle(GetWindowStyle(), pdwExflags); }
// returns TRUE if the window has been created
bool OS2Create( PSZ zClass
,const char* zTitle
@@ -526,7 +544,7 @@ protected:
virtual void DoCaptureMouse(void);
virtual void DoReleaseMouse(void);
// move the window to the specified location and resize it: this is called
// from both DoSetSize() and DoSetClientSize() and would usually just call
// ::WinSetWindowPos() except for composite controls which will want to arrange