mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-06 01:57:16 +01:00
win32: formatting, cleanup
git-svn-id: trunk@29780 -
This commit is contained in:
parent
bbe53df988
commit
13cb137a99
@ -318,9 +318,10 @@ var
|
||||
MenuInfo.fMask := MIIM_DATA;
|
||||
|
||||
MainMenuHandle := GetMenuParent(HMENU(WParam), GetMenu(Window));
|
||||
if GetMenuItemInfo(MainMenuHandle, LOWORD(LParam), true, @MenuInfo)
|
||||
then Result := TObject(MenuInfo.dwItemData)
|
||||
else Result := nil;
|
||||
if GetMenuItemInfo(MainMenuHandle, LOWORD(LParam), true, @MenuInfo) then
|
||||
Result := TObject(MenuInfo.dwItemData)
|
||||
else
|
||||
Result := nil;
|
||||
end;
|
||||
|
||||
function GetMenuItemObject(ByPosition: Boolean): TObject;
|
||||
|
||||
@ -1450,7 +1450,7 @@ const
|
||||
);
|
||||
begin
|
||||
MenuHandle := APopupMenu.Handle;
|
||||
AppHandle := TWin32WidgetSet(WidgetSet).AppHandle;
|
||||
AppHandle := Win32WidgetSet.AppHandle;
|
||||
GetWin32WindowInfo(AppHandle)^.PopupMenu := APopupMenu;
|
||||
TrackPopupMenuEx(MenuHandle,
|
||||
lAlignment[APopupMenu.Alignment, APopupMenu.IsRightToLeft] or lTrackButtons[APopupMenu.TrackButton],
|
||||
|
||||
Loading…
Reference in New Issue
Block a user