]> git.saurik.com Git - wxWidgets.git/blobdiff - src/palmos/dcclient.cpp
made SetFirstItem() work again (patch 1445170)
[wxWidgets.git] / src / palmos / dcclient.cpp
index 8dc1a374980b18747cb886cd08c07715fd594db6..e7a6817db9379dc25d5b499243620e93a92fcf46 100644 (file)
@@ -1,10 +1,10 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        dcclient.cpp
+// Name:        src/palmos/dcclient.cpp
 // Purpose:     wxClientDC class
-// Author:      William Osborne
+// Author:      William Osborne - minimal working wxPalmOS port
 // Modified by:
 // Created:     10/13/04
-// RCS-ID:      $Id
+// RCS-ID:      $Id$
 // Copyright:   (c) William Osborne
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 // headers
 // ----------------------------------------------------------------------------
 
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-    #pragma implementation "dcclient.h"
-#endif
-
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
@@ -42,14 +38,14 @@ struct WXDLLEXPORT wxPaintDCInfo
 {
     wxPaintDCInfo(wxWindow *win, wxDC *dc)
     {
-        hwnd = win->GetHWND();
-        hdc = dc->GetHDC();
-        count = 1;
+        handle = win->GetWinHandle();
+        hdc    = dc->GetHDC();
+        count  = 1;
     }
 
-    WXHWND    hwnd;       // window for this DC
-    WXHDC     hdc;        // the DC handle
-    size_t    count;      // usage count
+    WXWINHANDLE handle;       // window for this DC
+    WXHDC       hdc;        // the DC handle
+    size_t     count;      // usage count
 };
 
 #include "wx/arrimpl.cpp"
@@ -152,7 +148,7 @@ WXHDC wxPaintDC::FindDCInCache(wxWindow* win)
 /*
  * wxPaintDCEx
  */
+
 wxPaintDCEx::wxPaintDCEx(wxWindow *canvas, WXHDC dc) : saveState(0)
 {
 }