Hi Developers!
> hMainWindow:=FindWindow('TMailerForm',NIL);
> hMenu:=GetMenu(hMainWindow); //RETURNS 0 !
In TB version > 3.02.10 menu is placed on the toolbar. You need HWND
of this toolbar instead.
But (from help, about GetMenu):
> Return Values
>
> If the function succeeds, the return value is the handle of the
> menu. If the given window has no menu, the return value is NULL. If
> the window is a child window, the return value is undefined.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
--
Best regards, Jacek Szumigaj
http://szumi.one.pl
The Bat! 3.0.2.10/Windows XP 5.1
________________________________________________
http://www.silverstones.com/thebat/TBUDLInfo.html