]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/os2/bitmap.h
added cw6 fixes and patrick's patches
[wxWidgets.git] / include / wx / os2 / bitmap.h
index fdd415cfbcac7070c662bb691a34b07674f6c257..fa4b750192edb3386de29b8dc68ade28c3e627fe 100644 (file)
@@ -55,6 +55,7 @@ public:
 
     wxDC*                           m_pSelectedInto;
     HPS                             m_hPresentationSpace;
 
     wxDC*                           m_pSelectedInto;
     HPS                             m_hPresentationSpace;
+    LONG                            m_lId;
 
     // optional mask for transparent drawing
     wxMask*                         m_pBitmapMask;
 
     // optional mask for transparent drawing
     wxMask*                         m_pBitmapMask;
@@ -210,6 +211,10 @@ public:
     // An OS/2 version that probably doesn't do anything like the msw version
     wxBitmap GetBitmapForDC(wxDC& rDc) const;
 
     // An OS/2 version that probably doesn't do anything like the msw version
     wxBitmap GetBitmapForDC(wxDC& rDc) const;
 
+    inline LONG GetId() const
+      { return (GetBitmapData() ? GetBitmapData()->m_lId : 0L); }
+
+
 protected:
     // common part of all ctors
     void Init();
 protected:
     // common part of all ctors
     void Init();
@@ -306,6 +311,7 @@ public:
                        );
     virtual bool LoadFile( wxBitmap*       pBitmap
                           ,const wxString& rName
                        );
     virtual bool LoadFile( wxBitmap*       pBitmap
                           ,const wxString& rName
+                          ,HPS             hPs
                           ,long            lFlags
                           ,int             nDesiredWidth
                           ,int             nDesiredHeight
                           ,long            lFlags
                           ,int             nDesiredWidth
                           ,int             nDesiredHeight
@@ -325,6 +331,7 @@ public:
                        );
     virtual bool Load( wxGDIImage*     pImage
                       ,const wxString& rName
                        );
     virtual bool Load( wxGDIImage*     pImage
                       ,const wxString& rName
+                      ,HPS             hPs
                       ,long            lFlags
                       ,int             nDesiredWidth
                       ,int             nDesiredHeight
                       ,long            lFlags
                       ,int             nDesiredWidth
                       ,int             nDesiredHeight