diff options
author | Eli Zaretskii <eliz@gnu.org> | 2006-06-30 13:40:21 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2006-06-30 13:40:21 +0000 |
commit | 1771bb6e00fdde153eaa755789470601a5a6bcf0 (patch) | |
tree | af94129ec9956a7b7ebb51c2cc2cb14787e5b586 /src/w32fns.c | |
parent | 7d0a2d305d823c08dbeead135f4b1fc9bde29c61 (diff) | |
download | emacs-1771bb6e00fdde153eaa755789470601a5a6bcf0.tar.gz |
(w32_createwindow): Use CW_USEDEFAULT instead of f->left_pos and SH_SHOW
instead of f->top_pos in the call to CreateWindow. Record the actual position
in f->left_pos and f->top_pos.
Diffstat (limited to 'src/w32fns.c')
-rw-r--r-- | src/w32fns.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/w32fns.c b/src/w32fns.c index 25aa22f0683..66cac34b2d9 100644 --- a/src/w32fns.c +++ b/src/w32fns.c @@ -2085,8 +2085,8 @@ w32_createwindow (f) = CreateWindow (EMACS_CLASS, f->namebuf, f->output_data.w32->dwStyle | WS_CLIPCHILDREN, - f->left_pos, - f->top_pos, + CW_USEDEFAULT, + SW_SHOW, rect.right - rect.left, rect.bottom - rect.top, NULL, @@ -2107,6 +2107,11 @@ w32_createwindow (f) /* Do this to discard the default setting specified by our parent. */ ShowWindow (hwnd, SW_HIDE); + + /* Update frame positions. */ + GetWindowRect (hwnd, &rect); + f->left_pos = rect.left; + f->top_pos = rect.top; } } |