FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Remove Borlands Default System Menu On Dialogs (how)
Posts: 67
Joined: Thu Jan 05, 2006 10:35 PM
Remove Borlands Default System Menu On Dialogs (how)
Posted: Mon Mar 06, 2006 09:14 PM

How do you clear or end the default system menu with dialog from rc file.

Or how do you completely replace the system menu from resources on the fly.

Any help would be appreciated.

Posts: 67
Joined: Thu Jan 05, 2006 10:35 PM
Found It On the old forum.
Posted: Tue Mar 07, 2006 02:26 AM

procedure DisableX(ODLG)

local hMenu

hMenu := GetSystemMenu(oDlg:hWnd,.f.)
RemoveMenu( hMenu, 6, MF_BYPOSITION)
RemoveMenu( hMenu, 5, MF_BYPOSITION)
RemoveMenu( hMenu, 4, MF_BYPOSITION)
RemoveMenu( hMenu, 3, MF_BYPOSITION)
RemoveMenu( hMenu, 2, MF_BYPOSITION)
RemoveMenu( hMenu, 1, MF_BYPOSITION)
RemoveMenu( hMenu, 0, MF_BYPOSITION)
return

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Remove Borlands Default System Menu On Dialogs (how)
Posted: Tue Mar 07, 2006 08:37 AM

Mike,

Thanks :)

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion