summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--new/container_windows.c9
-rw-r--r--new/uipriv_windows.h2
2 files changed, 1 insertions, 10 deletions
diff --git a/new/container_windows.c b/new/container_windows.c
index 27f01d2..a8e28a0 100644
--- a/new/container_windows.c
+++ b/new/container_windows.c
@@ -89,18 +89,9 @@ void resize(uiControl *control, HWND parent, RECT r)
void updateParent(uintptr_t h)
{
HWND hwnd;
- RECT r;
if (h == 0) // no parent
return;
hwnd = (HWND) h;
-/*TODO
- // TODO is there a better way?
- if (GetWindowRect(hwnd, &r) == 0)
- logLastError("error getting window rect for dummy move in updateParent()");
- if (MoveWindow(hwnd, r.left, r.top, r.right - r.left, r.bottom - r.top, TRUE) == 0)
- logLastError("error moving window in updateParent()");
-*/
SendMessageW(hwnd, msgUpdateChild, 0, 0);
- // TODO invalidate rect?
}
diff --git a/new/uipriv_windows.h b/new/uipriv_windows.h
index 7f5f8c8..5383b54 100644
--- a/new/uipriv_windows.h
+++ b/new/uipriv_windows.h
@@ -33,7 +33,7 @@ enum {
// redirected WM_COMMAND and WM_NOTIFY
msgCOMMAND = WM_APP + 0x40, // start offset just to be safe
msgNOTIFY,
- msgUpdateChild, // fake because wine (only? TODO) seems to SWP_NOSIZE MoveWindow()s and SetWindowPos()s that don't change the window size (even if SWP_NOSIZE isn't specified)
+ msgUpdateChild, // fake because Windows seems to SWP_NOSIZE MoveWindow()s and SetWindowPos()s that don't change the window size (even if SWP_NOSIZE isn't specified)
};
// debug_windows.c