mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-16 00:40:43 +01:00
fix popupmenu handle creation
git-svn-id: trunk@6079 -
This commit is contained in:
parent
1cca3f8198
commit
b0e1042048
@ -76,6 +76,7 @@ type
|
||||
private
|
||||
protected
|
||||
public
|
||||
class function CreateHandle(const AMenu: TMenu): HMENU; override;
|
||||
class procedure Popup(const APopupMenu: TPopupMenu; const X, Y: integer); override;
|
||||
end;
|
||||
|
||||
@ -302,6 +303,11 @@ end;
|
||||
|
||||
{ TWin32WSPopupMenu }
|
||||
|
||||
function TWin32WSPopupMenu.CreateHandle(const AMenu: TMenu): HMENU;
|
||||
begin
|
||||
Result := CreatePopupMenu;
|
||||
end;
|
||||
|
||||
procedure TWin32WSPopupMenu.Popup(const APopupMenu: TPopupMenu; const X, Y: integer);
|
||||
var
|
||||
MenuHandle, AppHandle: HWND;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user