]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/msw/private.h
OS/2 fix
[wxWidgets.git] / include / wx / msw / private.h
index 86cc595d89b9f45269e43200a5c64ad5b470cd51..a2a08d8316ba96e5779684c5114ff52b0d929ca4 100644 (file)
@@ -722,6 +722,14 @@ extern WXDLLEXPORT wxSize wxGetHiconSize(HICON hicon);
 // Lines are drawn differently for WinCE and regular WIN32
 WXDLLEXPORT void wxDrawLine(HDC hdc, int x1, int y1, int x2, int y2);
 
+// fill the client rect of the given window on the provided dc using this brush
+inline void wxFillRect(HWND hwnd, HDC hdc, HBRUSH hbr)
+{
+    RECT rc;
+    ::GetClientRect(hwnd, &rc);
+    ::FillRect(hdc, &rc, hbr);
+}
+
 // ----------------------------------------------------------------------------
 // 32/64 bit helpers
 // ----------------------------------------------------------------------------