mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 04:19:47 +02:00
win32 intf: fixed TWin32WidgetSet.AttachMenuToWindow using the AMenu.Parent instead of AMenu.Owner for handle
git-svn-id: trunk@15016 -
This commit is contained in:
parent
6ca2263037
commit
4e712a00be
@ -488,7 +488,7 @@ begin
|
||||
AMenu := AMenuObject as TMenu;
|
||||
if AMenu is TMainMenu then
|
||||
begin
|
||||
AWinControl := TWinControl(AMenu.Owner);
|
||||
AWinControl := TWinControl(AMenu.Parent);
|
||||
Windows.SetMenu(AWinControl.Handle, AMenu.Handle);
|
||||
//Set the right order menu after attach the menu
|
||||
SetMenuFlag(AMenu.Handle, MFT_RIGHTORDER or MFT_RIGHTJUSTIFY, AMenu.IsRightToLeft);
|
||||
|
Loading…
Reference in New Issue
Block a user