Dmitry Timoshkov
c6dbb33e19
user32: When converting from MF_ flags to MENUITEMINFO ignore MF_POPUP if id is not a menu.
2014-04-21 11:09:52 +02:00
Vincent Povirk
68f2b878d2
user32: Allow EndMenu() calls from WM_ENTERMENULOOP.
2014-04-18 14:36:04 +02:00
Piotr Caban
55ff066103
user32: Don't fail on windows without menu bar in DrawMenuBar.
2014-04-10 16:51:09 +02:00
Vincent Povirk
a07966dba8
user32: Create popup menu windows before WM_ENTERMENULOOP.
2014-03-12 20:26:35 +01:00
Aric Stewart
beab7da6cd
user32: Correct buffer calculation for GetMenuStringA.
2014-03-03 17:02:49 +01:00
Bruno Jesus
06a6b189f6
user32: Cope with null LPMENUITEMINFO in SetMenuItemInfo.
2014-01-27 14:13:51 +01:00
Frédéric Delanoy
77ee42fd33
user32: Use BOOL type where appropriate.
2013-11-05 11:15:06 +01:00
Ken Thomases
029aec19ff
user32: Remove dead code for suppressing menu drawing.
2013-07-27 11:50:12 -05:00
Alexandre Julliard
cd4d71e4a2
user32: Fetch the window menu again after sending initialization messages.
2013-06-27 17:48:30 +02:00
Ken Thomases
effc28e16e
user32: Allow sent WM_CANCELMODE to end menu tracking in a window's menu bar.
2013-05-20 21:15:38 +02:00
Andrew Talbot
f3790542d5
user32: Avoid signed-unsigned integer comparisons.
2013-03-15 11:40:02 +01:00
Michael Stefaniuc
20595d2988
user32: Don't bother using the register storage class specifier.
2012-09-14 15:41:40 +02:00
Akihiro Sagawa
70937bd8dd
user32: Add support for legacy access keys.
2012-09-06 20:28:49 +02:00
Michael Stefaniuc
4affaea0ba
user32: Avoid TRUE:FALSE conditional expressions.
2012-08-13 11:50:51 +02:00
Piotr Caban
cd08b5a40a
user32: Added GetMenuBarInfo implementation.
2012-05-16 20:27:11 +02:00
Francois Gouget
fac36c55e9
Assorted typo, spelling, wording and case fixes.
2012-05-15 16:26:43 +02:00
Alexandre Julliard
03820a527b
user32: Fix some printf format warnings.
2012-01-17 15:02:51 +01:00
Alexandre Julliard
755abced55
user32: Always use the default alignment when displaying submenu popups.
2011-12-15 17:46:25 +01:00
Alexandre Julliard
efaa068cd1
user32: Always pass 0 as item id for WM_MEASUREITEM in menus.
2011-06-21 16:12:53 +02:00
Alexandre Julliard
33ba7c07fb
user32: Don't truncate bitmap ids in InsertMenu.
2011-06-21 16:07:00 +02:00
Owen Rudge
c55ff281c7
user32: Add separate sysmenu for MDI child windows.
2011-05-17 10:45:31 +02:00
Alexandre Julliard
bd1fab7862
user32: Don't start menu tracking when the owner window is invalid.
2011-04-21 16:53:42 +02:00
Dmitry Timoshkov
629f382a80
user32: Fix the single menu item activation using a hot key.
2011-04-12 17:42:12 +02:00
Dmitry Timoshkov
094db744ce
user32: Use symbolic names for values returned by WM_MENUCHAR handler.
2011-04-08 14:08:49 +02:00
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
Jason Edmeades
902a384b38
user32: Fix regression in alt, then right processing with eg wines notepad.
2007-08-13 12:00:36 +02:00
Jason Edmeades
76943c2a41
user32: Allow alt+space to highlight system menu.
2007-08-13 12:00:22 +02:00
Jason Edmeades
39d615eeed
user32: Skip system menu entries when using keyboard.
2007-08-09 15:02:38 +02:00
Dmitry Timoshkov
4d8f84cbdd
user32: When inserting a menu item make sure that MDI system buttons stay on the right side.
2007-06-20 15:10:58 +02:00
Dmitry Timoshkov
79de98f982
user32: Insert menu item only after contents of the passed in menu item info have been verified.
2007-06-19 11:59:07 +02:00
Dmitry Timoshkov
9a295e7f87
user32: Fix some compilation warnings in 64-bit mode.
2007-05-30 13:24:27 +02:00
Dmitry Timoshkov
3c9e7a7f33
wine: Switch to using 'long' for INT_PTR type for 64-bit compatibility.
2007-05-25 20:37:56 +02:00
Dmitry Timoshkov
4de936e181
user32: Remove duplicated code.
2007-05-16 15:51:31 +02:00
Dmitry Timoshkov
34015b93a4
user32: Add a test for the menu resource loader, make it pass under Wine.
2007-05-15 12:28:17 +02:00
Dmitry Timoshkov
7f189eccb9
user32: Add a test for CheckMenuRadioItem and make it pass under Wine.
2007-05-15 12:28:03 +02:00
Kevin Koltzau
069f5b90ae
user32: Draw menu item bitmaps in the correct location when the scroll arrows are active.
2007-04-27 11:49:01 +02:00
Andrew Talbot
48d740855e
user32: Replace inline static with static inline.
2007-03-17 20:04:08 +01:00
Andrew Talbot
29c66df45b
user32: Declare some functions static.
2007-02-05 12:32:37 +01:00
Alexandre Julliard
b8a2e3b8a4
user32: Renamed the user/ directory to user32.
2006-11-16 14:49:25 +01:00