FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour DeleteMenu
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
DeleteMenu
Posted: Sat Oct 25, 2008 02:51 PM

Hi, all !
How I can use function API DeleteMenu() on FWH ?

Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Delete Menue
Posted: Sat Oct 25, 2008 03:14 PM
Hello,
If you want delete a menue inside your application,
have a look at sample TESTMENU

// End / Close  in sample 
// oWnd:End() changed in oMenu:End()
// -------------------------------------------
MENUITEM FILE "..\bitmaps\End.bmp" MESSAGE "Bye, bye... -F2-" ;
   ACTION oMenu:End() ;     // oWnd:End() ;
   ACCELERATOR 0, VK_F2


Regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
DeleteMenu
Posted: Sun Oct 26, 2008 07:56 AM

No, it's outside application

Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
API-function Destroymen
Posted: Sun Oct 26, 2008 05:08 PM
Hello,

The API-function for FWH :

DLL32 FUNCTION DestroyMen;
      ( hMenu AS LONG ) ;
   AS LONG PASCAL; 
   FROM "DestroyMenu" LIB "USER32"


Regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
DeleteMenu
Posted: Sun Oct 26, 2008 05:22 PM

Thanks. How I can handle menu (function GetMenu(hWnd) return NIL) ?

Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
DLL-Function GetMenu
Posted: Sun Oct 26, 2008 05:54 PM
API-function Getmenu

DLL32 FUNCTION GetMenu;
      ( hwnd AS LONG ) ;
   AS LONG PASCAL; 
   LIB "USER32"


Regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
DeleteMenu
Posted: Sun Oct 26, 2008 06:08 PM

It's not work for outside application - return NIL :(

Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Sysmenue
Posted: Sun Oct 26, 2008 06:30 PM
Maybe that helps :

DLL32 FUNCTION GetSystMen;
      ( hwnd AS LONG, ;
        bRevert AS LONG ) ;
   AS LONG PASCAL; 
   FROM "GetSystemMenu" LIB "USER32"

Another Menue-Function
----------------------------

DLL32 FUNCTION RemoveMenu;
      ( hMenu AS LONG, ;
        nPosition AS LONG, ;
        wFlags AS LONG ) ;
   AS LONG PASCAL; 
   LIB "USER32"


Maybe you can explain, what you want to do ?

Regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
DeleteMenu
Posted: Mon Oct 27, 2008 06:03 AM

Thanks, Ukoeniq ! All right. How delete other items of window - msgbar and buttonbar ?

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
DeleteMenu
Posted: Mon Oct 27, 2008 08:55 AM

Natter,

DestroyWindow( hWnd )

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
DeleteMenu
Posted: Mon Oct 27, 2008 01:13 PM

Function DestroyWindow(hWnd) not delete msgbar this window

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
DeleteMenu
Posted: Mon Oct 27, 2008 02:33 PM

http://msdn.microsoft.com/en-us/library/ms632682(VS.85).aspx

What msgbar do you want to destroy ?

Windows desktop taskbar ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
DeleteMenu
Posted: Mon Oct 27, 2008 02:58 PM

StatusBar (bottom window)

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
DeleteMenu
Posted: Mon Oct 27, 2008 05:33 PM

> StatusBar (bottom window)

::oMsgBar:End()

or

::oBottom:End()

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
DeleteMenu
Posted: Mon Oct 27, 2008 07:44 PM

it for outside application ?