comparison src/w32fns.c @ 71545:26164031aa5a

(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.
author Eli Zaretskii <eliz@gnu.org>
date Fri, 30 Jun 2006 13:40:21 +0000
parents 9fcdaa132bf3
children 0bfda07cccbc 138ce2701550
comparison
equal deleted inserted replaced
71544:70062eaec923 71545:26164031aa5a
2083 2083
2084 FRAME_W32_WINDOW (f) = hwnd 2084 FRAME_W32_WINDOW (f) = hwnd
2085 = CreateWindow (EMACS_CLASS, 2085 = CreateWindow (EMACS_CLASS,
2086 f->namebuf, 2086 f->namebuf,
2087 f->output_data.w32->dwStyle | WS_CLIPCHILDREN, 2087 f->output_data.w32->dwStyle | WS_CLIPCHILDREN,
2088 f->left_pos, 2088 CW_USEDEFAULT,
2089 f->top_pos, 2089 SW_SHOW,
2090 rect.right - rect.left, 2090 rect.right - rect.left,
2091 rect.bottom - rect.top, 2091 rect.bottom - rect.top,
2092 NULL, 2092 NULL,
2093 NULL, 2093 NULL,
2094 hinst, 2094 hinst,
2105 /* Enable drag-n-drop. */ 2105 /* Enable drag-n-drop. */
2106 DragAcceptFiles (hwnd, TRUE); 2106 DragAcceptFiles (hwnd, TRUE);
2107 2107
2108 /* Do this to discard the default setting specified by our parent. */ 2108 /* Do this to discard the default setting specified by our parent. */
2109 ShowWindow (hwnd, SW_HIDE); 2109 ShowWindow (hwnd, SW_HIDE);
2110
2111 /* Update frame positions. */
2112 GetWindowRect (hwnd, &rect);
2113 f->left_pos = rect.left;
2114 f->top_pos = rect.top;
2110 } 2115 }
2111 } 2116 }
2112 2117
2113 void 2118 void
2114 my_post_msg (wmsg, hwnd, msg, wParam, lParam) 2119 my_post_msg (wmsg, hwnd, msg, wParam, lParam)