SetDlgItemRect from here...
* win32.h: ...to here, for potential usage in other dialogs.
+2013-11-15 Corinna Vinschen <corinna@vinschen.de>
+
+ * root.cc: Move inline definitions of GetDlgItemRect and
+ SetDlgItemRect from here...
+ * win32.h: ...to here, for potential usage in other dialogs.
+
2013-11-15 Corinna Vinschen <corinna@vinschen.de>
* res.rc: Fix size and position of rootdir textbox and button.
egetString (h, IDC_ROOT_DIR).size() && root_scope);
}
-static inline void
-GetDlgItemRect (HWND h, int item, LPRECT r)
-{
- GetWindowRect (GetDlgItem (h, item), r);
- MapWindowPoints (HWND_DESKTOP, h, (LPPOINT) r, 2);
-}
-
-static inline void
-SetDlgItemRect (HWND h, int item, LPRECT r)
-{
- MoveWindow (GetDlgItem (h, item), r->left, r->top,
- r->right - r->left, r->bottom - r->top, TRUE);
-}
-
static void
load_dialog (HWND h)
{
#define OSMajorVersion() (GetVer ().major ())
#define OSMinorVersion() (GetVer ().minor ())
+static inline void
+GetDlgItemRect (HWND h, int item, LPRECT r)
+{
+ GetWindowRect (GetDlgItem (h, item), r);
+ MapWindowPoints (HWND_DESKTOP, h, (LPPOINT) r, 2);
+}
+
+static inline void
+SetDlgItemRect (HWND h, int item, LPRECT r)
+{
+ MoveWindow (GetDlgItem (h, item), r->left, r->top,
+ r->right - r->left, r->bottom - r->top, TRUE);
+}
+
#endif /* SETUP_WIN32_H */