Commit Graph

218 Commits

Author SHA1 Message Date
Dmitry Timoshkov 032d6aa234 Use the idFirstChild specified in the MDIClient's CLIENTCREATESTRUCT
when creating MDI children. Add a test case for the desired
behaviour.
2005-02-02 09:33:58 +00:00
Alexandre Julliard 6382ffae2a Replace a number of calls to WIN_FindWndPtr by WIN_GetPtr. 2005-01-20 20:07:42 +00:00
Alexandre Julliard 6758db9a0c Get rid of nonclient.h and of the corresponding exported functions in
user32.spec.
2005-01-17 20:27:11 +00:00
Michael Stefaniuc 5ad7d858e0 Do not check for non NULL pointer before HeapFree'ing it. It's
redundant.
2004-12-23 17:06:43 +00:00
Alexandre Julliard 6a78c16aac Moved private USER definitions to a new user_private.h header, and
removed the global user.h.
2004-12-08 18:06:14 +00:00
Eric Pouech 294835a839 Another round of const correctness fixes. 2004-12-06 20:43:55 +00:00
Filip Navara 5cf8f2cff9 Don't call SetScrollInfo with SB_BOTH bar type. 2004-12-06 16:10:29 +00:00
Dmitry Timoshkov c3cecc5d57 - WM_MDISETMENU handler should update new frame menu only if an active
and maximized MDI child is visible.
- Add a test case for MDI child activation sequence.
2004-10-11 19:55:28 +00:00
Dmitry Timoshkov 132470a2b1 Properly handle the case when last MDI child is being destroyed. 2004-10-08 23:36:18 +00:00
Dmitry Timoshkov 01a88ff01e If there no MDI child to activate set hwndActiveChild to 0 in
WM_MDIDESTROY hander, add a test case.
2004-10-05 02:10:04 +00:00
Robert Shearman bbdac5e475 GetWindowLong -> GetWindowLongPtr. 2004-09-22 19:14:08 +00:00
Dmitry Timoshkov 4dd296180a Fix WM_MDIREFRESHMENU for the case when separator is at the position
0.
2004-09-21 20:04:10 +00:00
Dmitry Timoshkov a1ccb921bd Make message flow for MDI creation/activation/destruction more like in
Windows. Add a bunch of MDI message tests.
2004-09-21 00:24:22 +00:00
Alexandre Julliard 97f4e4ef7d Removed struct32.[ch]. 2004-08-30 19:32:08 +00:00
Marcus Meissner c966c56f08 If the current menu handle is already set, do not set it again. 2004-08-13 00:39:29 +00:00
Dmitry Timoshkov 2c71c539a5 Do not do SetWindowPos(SWP_FRAMECHANGED) in the
DefFrameProc(WM_SETTEXT) handler, DefWindowProc already takes care of
it.
2004-06-30 18:15:51 +00:00
Dmitry Timoshkov eb30a1c7b2 Make sure that both deactivated and activated MDI children receive
WM_MDIACTIVATE message in all cases.
2004-06-23 20:51:06 +00:00
Dmitry Timoshkov e069cf1476 Do not activate an MDI child if the child is invisible. 2004-05-25 18:03:32 +00:00
Dmitry Timoshkov e6e15c36b5 Before removing menu items in the MDI Window menu check whether a menu
item following a separator has our "magic" value.
2004-04-27 23:29:18 +00:00
Duane Clark 5ffac0988e Add tracing messages to MDI. 2004-04-26 20:05:01 +00:00
Dimitrie O. Paun 126227a55a Remove the support for the Win 3.1 Look. 2004-04-01 04:57:12 +00:00
Huw Davies 6174bccfb1 We need to at least refresh the window menu in ChildActivate, so for
now remove the 'is already activated' optimization.
2004-03-09 23:26:18 +00:00
Huw Davies bed797e1ee Windows always adds a separator to the bottom of the new window
menu. Thanks to Dmitry Timoshkov for confirming this.
2004-03-09 19:19:29 +00:00
Alexandre Julliard a2e2e18586 Avoid a few more GetModuleHandle calls. 2004-02-12 00:35:01 +00:00
Dmitry Timoshkov df0ddd4a96 Make the MDI Window menu refreshing Windows compatible.
Simplify MDI child visibility check.
2004-02-03 00:08:51 +00:00
Dmitry Timoshkov 4f9b4fd38d Test whether an active maximized MDI child is visible. 2004-02-02 23:02:03 +00:00
Dmitry Timoshkov ae23340c35 - Add the same protection to MDI_AugmentFrameMenu as one existing in
MDI_RestoreFrameMenu against repetitive calls.
- Use Windows default icon for system menu bitmap if there is no one
  supplied by a child window as Windows does.
- Use GetSystemMenu() to load system menu for a child window,
  otherwise there is no way to generate WM_SYSCOMMAND menu messages.
- Restore check in WM_SIZE MDI child handler erroneously removed
  earlier.
2004-01-27 03:57:10 +00:00
Dmitry Timoshkov b9e56b9b99 In the WM_MDISETMENU handler use an existing frame menu if the passed
value is 0.
Visio expects that separator in the Window menu has ID 0.
Cope with a destroyed menu handle in WM_MDIREFRESHMENU handler.
2004-01-26 20:14:59 +00:00
Dmitry Timoshkov dc70553cae Merge the MDI and common window creation code. Change the way MDI
children are managed in MDIClient.
Add support for MDICREATESTRUCT A<->W conversions.
Add support for WM_MDIREFRESHMENU.
2004-01-20 04:29:20 +00:00
Steven Edwards 892a28323b Split up the Win16/32 MDI support a bit. 2004-01-02 20:48:13 +00:00
Dmitry Timoshkov 1a620f29d2 Add MDI child creation tests. 2003-12-30 21:54:54 +00:00
Alexandre Julliard b0622101b6 System classes must not have the CS_GLOBALCLASS style. 2003-12-10 04:14:35 +00:00
Rein Klazes c99b26d985 Fix MDISetMenu in the case it is called before a Windows Menu exists
as Agent newsreader does.
2003-09-23 22:47:55 +00:00
Alexandre Julliard 9d61596624 SLOWORD and SHIWORD do not exist on Win32 (reported by Filip Navara). 2003-09-17 04:28:28 +00:00
Alexandre Julliard cf52644a1c Removed the A/W constants for builtin cursors, icons and resource
types since they don't exist on Windows, and added typecasts
everywhere instead.
2003-09-10 03:56:47 +00:00
Alexandre Julliard e37c6e18d0 Fixed header dependencies to be fully compatible with the Windows
headers (with help from Dimitrie O. Paun).
2003-09-05 23:08:26 +00:00
Dmitry Timoshkov 040b3e1da5 Restore MDI window in the case of disabled maximize button. 2003-05-19 19:01:56 +00:00
Dan Kegel 0fd521fee3 Change RECT to use LONG to match win32 standard headers and fix format
strings to use %ld for RECT elements.
2003-01-08 21:09:25 +00:00
Matthew Davison 3f17416ad2 Fix some unicode->ascii calls. 2002-11-24 22:13:26 +00:00
Alexandre Julliard aff7ddaeeb Made user compile with -DSTRICT. 2002-11-22 21:22:14 +00:00
Alexandre Julliard a8a422f70d Fixed more -DSTRICT issues. 2002-11-22 20:43:01 +00:00
Alexandre Julliard 7ef66af34a Moved some more 16-bit functions to user16.c.
A few fixes for -DSTRICT.
2002-11-22 04:47:10 +00:00
Dmitry Timoshkov 601a3abec1 Fix some types and function prototypes according to Platform SDK
definitions.
2002-10-31 01:04:39 +00:00
Michael Stefaniuc 95591a6e90 Some fixes for the compilation of the user dll with -DSTRICT. 2002-10-28 20:11:40 +00:00
Dmitry Timoshkov 9abcad524c Restore setting of caption "Error". 2002-10-22 00:42:53 +00:00
Alexandre Julliard 0ca051e555 Fixed wownt32.h to make it usable from inside Wine, and use it to
avoid some duplication of the handle conversion macros.
2002-10-17 16:43:42 +00:00
Michael Stefaniuc bc54d78532 - change the internal functions in windows/cursoricon.c to use 32bit
handles
- move the implementation of ExtractAssociatedIcon16 to
  ExtractAssociatedIconA
- convert HICON to a void*
- fixed some handle conversions that happened to be in the way while
  doing the above
2002-10-10 21:22:09 +00:00
Andrew M. Johnston 3e7b710446 Removed reference to SCROLL_SetNCSbState. 2002-10-09 20:40:33 +00:00
Michael Stefaniuc 2247af320d - Rename WIN_Handle16 to HWDN_16 and make it a macro.
- Prepare user.dll for the change of HWND to a void*.
2002-09-04 19:37:01 +00:00
Vincent Béron 9a62491660 Removed trailing whitespace. 2002-05-31 23:06:46 +00:00