]> git.saurik.com Git - wxWidgets.git/commitdiff
Some OS/2 Modifications
authorDavid Webster <Dave.Webster@bhmi.com>
Mon, 22 Oct 2001 05:11:09 +0000 (05:11 +0000)
committerDavid Webster <Dave.Webster@bhmi.com>
Mon, 22 Oct 2001 05:11:09 +0000 (05:11 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12145 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/defs.h
include/wx/os2/button.h
include/wx/os2/control.h
include/wx/os2/dialog.h
include/wx/os2/frame.h
include/wx/os2/setup0.h
include/wx/os2/window.h
include/wx/wxchar.h

index 5de3bdf6974dc077e576066a3fdf6837f48f1529..917a505aea507db69c083ac4f8b5a2f8a6c1ea12 100644 (file)
@@ -70,7 +70,7 @@
 // using this macro allows constuctions like "wxSTD iostream" to work in
 // either case
 #if !wxUSE_IOSTREAMH
- #define wxSTD std::
 #define wxSTD std::
 #else
  #define wxSTD
 #endif
@@ -1951,7 +1951,7 @@ typedef struct tagLOGPALETTE
 #elif defined(__WIN32__)
     typedef int (__stdcall *WXFARPROC)();
 #elif defined(__WXPM__)
-#  if (defined(__VISAGECPP__) && (__IBMCPP__ < 400 || __IBMC__ < 400 )) || defined (__WATCOMC__)
+#  if (defined(__VISAGECPP__) && (__IBMCPP__ < 400)) || defined (__WATCOMC__)
     // VA 3.0 for some reason needs base data types when typedefing a proc proto???
     typedef void* (_System *WXFARPROC)(unsigned long, unsigned long, void*, void*);
 #  else
index 5330bcfb8f12878206c5195e52e158c714c4bbbe..092a589d871b676d7e354325f4b44a3ef9fc9d34 100644 (file)
@@ -20,48 +20,74 @@ WXDLLEXPORT_DATA(extern const char*) wxButtonNameStr;
 class WXDLLEXPORT wxButton: public wxButtonBase
 {
  public:
-  inline wxButton() {}
-  inline wxButton(wxWindow *parent, wxWindowID id, const wxString& label,
-           const wxPoint& pos = wxDefaultPosition,
-           const wxSize& size = wxDefaultSize, long style = 0,
+    inline wxButton() {}
+    inline wxButton( wxWindow*          pParent
+                    ,wxWindowID         vId
+                    ,const wxString&    rsLabel
+                    ,const wxPoint&     rPos = wxDefaultPosition
+                    ,const wxSize&      rSize = wxDefaultSize
+                    ,long               lStyle = 0
 #if wxUSE_VALIDATORS
-           const wxValidator& validator = wxDefaultValidator,
+                    ,const wxValidator& rValidator = wxDefaultValidator
 #endif
-           const wxString& name = wxButtonNameStr)
-  {
-      Create(parent, id, label, pos, size, style, validator, name);
-  }
+                    ,const wxString&    rsName = wxButtonNameStr
+                   )
+    {
+        Create( pParent
+               ,vId
+               ,rsLabel
+               ,rPos
+               ,rSize
+               ,lStyle
+#if wxUSE_VALIDATORS
+               ,rValidator
+#endif
+               ,rsName
+              );
+    }
 
-  bool Create(wxWindow *parent, wxWindowID id, const wxString& label,
-           const wxPoint& pos = wxDefaultPosition,
-           const wxSize& size = wxDefaultSize, long style = 0,
+    bool Create( wxWindow*          pParent
+                ,wxWindowID         vId
+                ,const wxString&    rsLabel
+                ,const wxPoint&     rPos = wxDefaultPosition
+                ,const wxSize&      rSize = wxDefaultSize
+                ,long               lStyle = 0
 #if wxUSE_VALIDATORS
-           const wxValidator& validator = wxDefaultValidator,
+                ,const wxValidator& rValidator = wxDefaultValidator
 #endif
-           const wxString& name = wxButtonNameStr);
+                ,const wxString&    rsName = wxButtonNameStr
+               );
 
-  virtual ~wxButton();
+    virtual ~wxButton();
 
-  virtual void SetDefault();
+    virtual void     SetDefault(void);
+    static wxSize    GetDefaultSize(void);
+    virtual void     Command(wxCommandEvent& rEvent);
+    virtual bool     OS2Command( WXUINT uParam
+                                ,WXWORD vId
+                               );
+    virtual WXHBRUSH OnCtlColor( WXHDC    hDC
+                                ,WXHWND   hWnd
+                                ,WXUINT   uCtlColor
+                                ,WXUINT   uMessage
+                                ,WXWPARAM wParam
+                                ,WXLPARAM lParam
+                               );
+    void          MakeOwnerDrawn(void);
 
-  static wxSize GetDefaultSize();
+    virtual MRESULT WindowProc( WXUINT   uMsg
+                               ,WXWPARAM wParam
+                               ,WXLPARAM lParam
+                              );
 
-  virtual void Command(wxCommandEvent& event);
-  virtual bool OS2Command(WXUINT param, WXWORD id);
-  virtual WXHBRUSH OnCtlColor(WXHDC pDC,
-                              WXHWND pWnd,
-                              WXUINT nCtlColor,
-                              WXUINT message,
-                              WXWPARAM wParam,
-                              WXLPARAM lParam);
 protected:
-    // send a notification event, return TRUE if processed
-    bool SendClickEvent();
 
-    virtual wxSize DoGetBestSize() const;
+    bool           SendClickEvent(void);
+    virtual wxSize DoGetBestSize(void) const;
 private:
   DECLARE_DYNAMIC_CLASS(wxButton)
-};
+}; // end of CLASS wxButton
 
 #endif
     // _WX_BUTTON_H_
+
index d7cfb69f0fa49fedf775fdceeab1d3cb439d0e09..19ee703ab07987d47615b11a4534fe8c8d27dc91 100644 (file)
@@ -106,7 +106,7 @@ protected:
     wxFunction                      m_callback;     // Callback associated with the window
 #endif // WXWIN_COMPATIBILITY
 
-protected:
+public:
     //
     // For controls like radiobuttons which are really composite
     //
@@ -132,7 +132,14 @@ protected:
     //
     WXDWORD GetExStyle(WXDWORD& rStyle) const;
 
+    inline int  GetXComp(void) const {return m_nXComp;}
+    inline int  GetYComp(void) const {return m_nYComp;}
+    inline void SetXComp(const int nXComp) {m_nXComp = nXComp;}
+    inline void SetYComp(const int nYComp) {m_nYComp = nYComp;}
+
 private:
+    int                             m_nXComp;
+    int                             m_nYComp;
    DECLARE_EVENT_TABLE()
 }; // end of wxControl
 
index 49f5af72ec8139479c470a1bd06ce53f271aab03..260a335ef1734456d0b845b2f133b7f103064b73 100644 (file)
@@ -41,7 +41,7 @@ public:
     {
         long                        lModalStyle = lStyle ? wxDIALOG_MODAL : wxDIALOG_MODELESS ;
 
-        bModal = false;
+        bModal = FALSE;
         Create( pParent
                ,-1
                ,rsTitle
index 4cfbc3c33a07f992d1d235b28da3c21238276ad2..414ab5ac685a27be50438ac72444894bcf5e82d5 100644 (file)
@@ -66,6 +66,7 @@ public:
     // implementation only from now on
     // -------------------------------
 
+    void         AlterChildPos(void);
     // override some more virtuals
     virtual bool Show(bool bShow = TRUE);
 
index a5db6eaf0e034e8bc28d5ea3972cfdfd34d3b404..a22a59e0cdf58abd45a983f7f046c81ecd8e2ce0 100644 (file)
 
 #define wxUSE_CMDLINE_PARSER      1
 
+#define wxUSE_SPLASH              1
+
+#define NO_TEXT_WINDOW_STREAM     1
 #endif
     // _WX_SETUP_H_
index 23c386d90dbf97081d4fd7c8aaa2579eda1b3504..a230da8ad271b05d4ac08244a71f40a0a91c149b 100644 (file)
@@ -368,11 +368,7 @@ public:
     bool HandleSysCommand( WXWPARAM wParam
                           ,WXLPARAM lParam
                          );
-    bool HandleWindowParams( PWNDPARAMS pParams
-                            ,WXLPARAM   lParam
-                           );
     bool HandlePaletteChanged();
-    bool HandlePresParamChanged(WXWPARAM wParam);
     bool HandleSysColorChange(void);
     bool HandleCtlColor(WXHBRUSH* hBrush);
     bool HandleSetFocus(WXHWND hWnd);
@@ -387,14 +383,14 @@ public:
                          ,int    nY
                          ,WXUINT uFlags
                         );
-    bool HandleChar( WXWORD   wParam
+    bool HandleChar( WXDWORD  wParam
                     ,WXLPARAM lParam
                     ,bool     bIsASCII = FALSE
                    );
     bool HandleKeyDown( WXWORD   wParam
                        ,WXLPARAM lParam
                       );
-    bool HandleKeyUp( WXWORD   wParam
+    bool HandleKeyUp( WXDWORD  wParam
                      ,WXLPARAM lParam
                     );
     bool HandleQueryDragIcon(WXHICON* phIcon);
index 1ac1585756baa6c447c16e61808e4fc50007c8e9..c185288ce6be8a45894ca5153a82b6c98a1c2e53 100644 (file)
@@ -281,8 +281,8 @@ typedef  _TUCHAR     wxUChar;
 #      define wxUSE_WCHAR_T 0
 #    elif defined(__WATCOMC__)
 #      define wxUSE_WCHAR_T 0
-#    elif defined(__VISAGECPP__) && (__IBMCPP__ >= 400)
-#      define wxUSE_WCHAR_T 1
+#    elif defined(__VISAGECPP__) && (__IBMCPP__ < 400)
+#      define wxUSE_WCHAR_T 0
 #    else
   // add additional compiler checks if this fails
 #      define wxUSE_WCHAR_T 1