DeleteMenu

DeleteMenu

Postby Natter » Sat Oct 25, 2008 2:51 pm

Hi, all !
How I can use function API DeleteMenu() on FWH ?
Natter
 
Posts: 1215
Joined: Mon May 14, 2007 9:49 am

Delete Menue

Postby ukoenig » Sat Oct 25, 2008 3:14 pm

Hello,
If you want delete a menue inside your application,
have a look at sample TESTMENU

Code: Select all  Expand view

// 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 :lol:
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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Postby Natter » Sun Oct 26, 2008 7:56 am

No, it's outside application
Natter
 
Posts: 1215
Joined: Mon May 14, 2007 9:49 am

API-function Destroymen

Postby ukoenig » Sun Oct 26, 2008 5:08 pm

Hello,

The API-function for FWH :

Code: Select all  Expand view

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



Regards
Uwe :lol:
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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Postby Natter » Sun Oct 26, 2008 5:22 pm

Thanks. How I can handle menu (function GetMenu(hWnd) return NIL) ?
Natter
 
Posts: 1215
Joined: Mon May 14, 2007 9:49 am

DLL-Function GetMenu

Postby ukoenig » Sun Oct 26, 2008 5:54 pm

API-function Getmenu

Code: Select all  Expand view

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



Regards
Uwe :lol:
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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Postby Natter » Sun Oct 26, 2008 6:08 pm

It's not work for outside application - return NIL :(
Natter
 
Posts: 1215
Joined: Mon May 14, 2007 9:49 am

Sysmenue

Postby ukoenig » Sun Oct 26, 2008 6:30 pm

Maybe that helps :

Code: Select all  Expand view

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 :lol:
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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Postby Natter » Mon Oct 27, 2008 6:03 am

Thanks, Ukoeniq ! All right. How delete other items of window - msgbar and buttonbar ?
Natter
 
Posts: 1215
Joined: Mon May 14, 2007 9:49 am

Postby Antonio Linares » Mon Oct 27, 2008 8:55 am

Natter,

DestroyWindow( hWnd )
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Natter » Mon Oct 27, 2008 1:13 pm

Function DestroyWindow(hWnd) not delete msgbar this window
Natter
 
Posts: 1215
Joined: Mon May 14, 2007 9:49 am

Postby Antonio Linares » Mon Oct 27, 2008 2: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Natter » Mon Oct 27, 2008 2:58 pm

StatusBar (bottom window)
Natter
 
Posts: 1215
Joined: Mon May 14, 2007 9:49 am

Postby Antonio Linares » Mon Oct 27, 2008 5:33 pm

> StatusBar (bottom window)

::oMsgBar:End()

or

::oBottom:End()
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Natter » Mon Oct 27, 2008 7:44 pm

it for outside application ?
Natter
 
Posts: 1215
Joined: Mon May 14, 2007 9:49 am

Next

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 86 guests