diff options
| author | Pietro Gagliardi <[email protected]> | 2015-04-08 21:08:53 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2015-04-08 21:08:53 -0400 |
| commit | c6d7e331213adc935b1755a4a2aa35a5ecba9e80 (patch) | |
| tree | 9c997add94363b31580f9daf2d242573ac64ce80 /new/container_windows.c | |
| parent | fef91d9820b5df51f2ef7aff49043933f2e413b9 (diff) | |
Decided to not call InvalidateRect() in the Windows updateParent(); the Cocoa one doesn't either, and besides, if controls expose something then the parent areas would be invalidated anyway :/ More TODO removal.
Diffstat (limited to 'new/container_windows.c')
| -rw-r--r-- | new/container_windows.c | 9 |
1 files changed, 0 insertions, 9 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? } |
