with GNATCOM.Errors;

package body MSHTML.IHTMLSelectElementEx_Interface is

   procedure Initialize (This : in out IHTMLSelectElementEx_Type) is
   begin
      Set_IID (This, IID_IHTMLSelectElementEx);
   end Initialize;

   function Pointer (This : IHTMLSelectElementEx_Type)
     return Pointer_To_IHTMLSelectElementEx
   is
   begin
      return To_Pointer_To_IHTMLSelectElementEx (Address (This));
   end Pointer;

   procedure Attach (This    : in out IHTMLSelectElementEx_Type;
                     Pointer : in     Pointer_To_IHTMLSelectElementEx)
   is
   begin
      Attach (This, GNATCOM.IInterface.To_Pointer_To_IUnknown
              (Pointer.all'Address));
   end Attach;

   procedure ShowDropdown
     (This  : IHTMLSelectElementEx_Type;
      fShow : Interfaces.C.long)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.ShowDropdown
         (Pointer (This),
          fShow));

   end ShowDropdown;

   procedure SetSelectExFlags
     (This   : IHTMLSelectElementEx_Type;
      lFlags : Interfaces.C.unsigned_long)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.SetSelectExFlags
         (Pointer (This),
          lFlags));

   end SetSelectExFlags;

   function GetSelectExFlags
     (This   : IHTMLSelectElementEx_Type)
     return Interfaces.C.unsigned_long
   is
       RetVal : aliased Interfaces.C.unsigned_long;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.GetSelectExFlags
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end GetSelectExFlags;

   function GetDropdownOpen
     (This   : IHTMLSelectElementEx_Type)
     return Interfaces.C.long
   is
       RetVal : aliased Interfaces.C.long;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.GetDropdownOpen
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end GetDropdownOpen;

end MSHTML.IHTMLSelectElementEx_Interface;

