Commit Graph

64 Commits

Author SHA1 Message Date
Alexandre Julliard 5c6a1f776a user32: Add support for right-to-left menus. 2010-09-22 20:31:52 +02:00
Alexandre Julliard 9b693ddadb user32: Use WIN_GetRectangles where possible instead of mapping coordinates explicitly. 2010-09-07 15:11:24 +02:00
Nikolay Sivov 6f0560dfa7 user32: Set WM_EXITMENULOOP wParam same way as for WM_ENTERMENULOOP. 2010-04-12 11:29:34 +02:00
Nikolay Sivov e9bae2cfaf user32: Block TrackPopupMenu if menu is already active. 2010-04-09 11:42:01 +02:00
Mikhail Maroukhine 819464f1d9 user32: Fix compiler warnings with flag -Wcast-qual. 2010-03-29 12:16:50 +02:00
Kusanagi Kouichi 56416b09a6 user32: F10 key deactivates menu. 2010-01-18 14:38:29 +01:00
Alexandre Julliard 00e75f2b9e user32: Reimplement MENU_FindSubMenu on the 16-bit side using only exported functions. 2009-12-22 17:00:12 +01:00
Alexandre Julliard d081a7352c user32: Simplify window procedure allocation for the builtin classes. 2009-12-18 12:39:13 +01:00
Alexandre Julliard e6f15c5886 user32: Pre-allocate the window procedure for the menu class. 2009-12-18 12:37:58 +01:00
Alexandre Julliard 15000f32b6 user32: Move the 16-bit menu functions to user16.c. 2009-12-17 15:04:21 +01:00
Rein Klazes b94f63ef38 user32: Handle MN_GETHMENU in PopupMenuWndProc. 2009-10-16 17:49:40 +02:00
Alexandre Julliard a7adbf7849 user32: Reimplement accelerator functions to use 32-bit user handles instead of 16-bit functions. 2009-10-15 17:35:06 +02:00
Alexandre Julliard db79a9f2e9 user32: Use client-side user handles for menus. 2009-10-12 17:07:04 +02:00
Rein Klazes 251c26e0f9 user32: Handle WM_PRINTCLIENT message in PopupMenuWndProc(). 2009-08-18 16:14:51 +02:00
Rein Klazes 06b99c62c2 user32: Fix a bug in computing the maximum depth of a branch in a menu hierarchy.
It was computing the number of submenus in the branch, rather then the
maximum depth.
2009-08-12 12:53:42 +02:00
Rein Klazes c18cd1b46f user32: When all items in a menu have either a bitmap or text but not both, then texts should be aligned with the bitmaps. 2009-08-03 17:39:22 +02:00
Rein Klazes 38dbe067c3 user32: Fail if inserting a submenu would create a loop in the menu hierarchy. 2009-07-24 13:11:10 +02:00
Rein Klazes 50cfcffd32 user32: Get rid of internal function MENU_SetItemData, use SetMenuItemInfo_common instead. 2009-07-23 15:35:23 +02:00
Rein Klazes 9555171044 user32: When setting a menu item, handle MIIM_TYPE flag by setting approriate MIIM_BITMAP, MIIM_FTYPE and MIIM_STRING flags. 2009-07-23 15:34:03 +02:00
Rein Klazes e9f4c6bb02 user32: Put some repeated code for checking and extending of a MENUITEMINFO structure in a separate function. 2009-07-23 15:31:18 +02:00
Rein Klazes c2ada64097 user32: Ignore the MFT_BITMAP flag when testing menu items for 'magic' bitmap handles. 2009-07-20 14:19:46 +02:00
Rein Klazes e861d8be43 user32: Fix for the ending of menu tracking in the default handler of WM_CANCELMODE message with test. 2009-04-03 13:25:31 +02:00
Rein Klazes d75b0cdc98 user32: In MENU_SuspendPopup() make sure the right message is removed. 2009-03-25 12:39:10 +01:00
Rein Klazes 366334c2fa user32: Check for invalid menu handle passed to TrackPopupMenu and TrackPopupMenuEx. 2009-03-06 12:49:04 +01:00
Alexandre Julliard d387cf3251 user32: Use MAKEWPARAM instead of MAKELONG for menu messages. 2009-03-03 13:20:21 +01:00
Rein Klazes 5c130c813a user32: MENU_TrackMenu, called from TrackPopupMenu(), should send WM_ENTERIDLE message with the menu window handle as lparam with test. 2009-03-02 15:06:57 +01:00
Michael Stefaniuc 214b40b109 user32: Remove superfluous pointer casts. 2009-03-02 12:11:38 +01:00
Rein Klazes 471e949cff user32: In SetMenuInfo() implement the MIM_APPLYTOSUBMENUS. Also set last error if called with invalid parameters with tests. 2009-02-27 14:16:23 +01:00
Rein Klazes bdb770e10e user32: Refine the size calculations for menu items with HBMMENU_POPUP magic bitmaps with some conformance tests. 2009-02-25 12:36:51 +01:00
Rein Klazes 0c6e37bb04 user32: Implement support for HBMENU_POPUP_* magic menu bitmaps and use them to decorate the system menu. 2009-02-20 18:46:03 +01:00
Alexandre Julliard 7d657ed8f4 user32: Make sure the submenu is valid in MENU_HideSubPopups. 2009-01-26 15:09:07 +01:00
Alexandre Julliard f12c5bfca3 user32: Use a finally handler to make sure capture is always released when exiting the menu loop. 2009-01-26 15:08:49 +01:00
Andrew Talbot b5081dacc0 user32: Sign-compare warnings fix. 2008-12-16 14:27:50 +01:00
Paul Vriens 80d3604947 user32/tests: Set last error if the menu item cannot be found. 2008-11-07 13:34:18 +01:00
Alexandre Julliard 5d9d8f854f user32: Convert source files to utf-8. 2008-10-18 19:21:00 +02:00
Vincent Povirk 3c4f44d1af user32: Use the correct bitmap location for MNS_CHECKORBMP. 2008-09-08 12:49:12 +02:00
Vincent Povirk 743b5730f5 user32: Implement TPM_*ALIGN flags. 2008-08-20 12:44:36 +02:00
Dan Hipschman 50b98a2946 user32: Redefine internal pop-up tracking flags to avoid conflicts.
These internal flags conflict with the Win32 API flags TPM_RECURSE,
TPM_RIGHTBUTTON, and TPM_CENTERALIGN respectively, which are all stored
in the same flag UINT.
2008-06-27 11:10:27 +02:00
Dmitry Timoshkov bbd8ae4322 user32: Add a test for MNS_NOTIFYBYPOS, make it pass under Wine. 2008-06-18 15:21:49 +02:00
Igor Tarasov 356c47e89e user32: Further implementation of MNS_NOTIFYBYPOS. 2008-05-28 11:30:01 +02:00
Andrew Talbot d8ce2207b8 user32: Remove unused variables. 2008-04-30 10:25:35 +02:00
Alexandre Julliard eb857aebeb user32: Moved the menu activation hack on managed windows to the X11 driver. 2008-04-10 16:41:26 +02:00
Alexandre Julliard 635544e20f user32: Make sure we set menu capture to a window that is visible. 2008-03-24 17:59:58 +01:00
Alexandre Julliard 4e129f88d0 user32: Add a helper function to set the capture window. 2008-03-12 14:54:03 +01:00
Bang Jun-young 9fcebb0055 user32: Fix EndMenu() to match the PSDK. 2008-02-04 14:18:20 +01:00
Alexandre Julliard 4a753f90cf user32: Menus should be top-most windows. 2008-01-23 21:42:46 +01:00
Andrew Talbot f394970edb user32: Constify some variables. 2007-11-26 12:27:14 +01:00
Alexandre Julliard 6ff78347e2 user32: Remove a few traces that only duplicate the relay information. 2007-11-12 14:03:45 +01:00
Dmitry Timoshkov 5722660758 user32: Simplify some code. 2007-11-09 13:10:34 +01:00
Alexandre Julliard bfe88a00f8 user32: Store the builtin class names in Unicode. 2007-11-01 12:55:00 +01:00