Board index » delphi » How to add items to system menu ?
Baek Chang Heum
![]() Delphi Developer |
Tue, 29 Dec 1998 03:00:00 GMT
|
Baek Chang Heum
![]() Delphi Developer |
Tue, 29 Dec 1998 03:00:00 GMT
How to add items to system menu ?I'm happy to get an opportunity to ask my question on Delphi. My question is that : Any remark would be appreciated. |
Duncan McNiv
![]() Delphi Developer |
Tue, 29 Dec 1998 03:00:00 GMT
Re:How to add items to system menu ?{ FILE: SysMenu1.PAS VERSION: 1.0.1 PURPOSE: Demo program. Shows how to add items to system menu CAVEATS: The IDs for new menu items must be multiples of 16 (or To check if a menu ID already exists, use unit Sysmenu1; interface uses type var implementation { Add an item to the system menu and the form menu. } FormSysMenu := GetSystemMenu(Form1.Handle,False); Application.OnMessage := AppMessage; { Intercept Windows messages & find those from our new menu items } if msg.WParam = $E020 then begin end. Baek Chang Heum <chb...@maru.hit.co.kr> wrote: Quote>I'm happy to get an opportunity to ask my question on Delphi. |
Tim Hyd
![]() Delphi Developer |
Tue, 29 Dec 1998 03:00:00 GMT
Re:How to add items to system menu ?Here is some code that should help you. Regards unit Unit1; interface uses type procedure DOWHATEVER;{procedure to do whatever} var implementation {$R *.DFM} procedure tform1.winmsg(var msg:tmsg;var handled:boolean); procedure TForm1.FormCreate(Sender: TObject); AppendMenu(GetSystemMenu(form1.handle,false),mf_separator,0,''); AppendMenu(GetSystemMenu(form1.handle,false),mf_byposition,ItemID, AppendMenu(GetSystemMenu(application.handle,false),mf_separator,0,''); AppendMenu(GetSystemMenu(application.handle,false),mf_byposition, {for more information on the AppendMenu and GetSystemMenu see online end; end. |
1. Adding a user defined menu item in the system menu
2. Adding system menu items: doesn't work when the form is maximized
3. Adding items to System Menu
4. System-Menu - adding items - right mouse-button
5. Adding Items to the System menu
6. Adding Items to the System Menu?
7. Adding an item to the system menu
8. ADDING MENU ITEM IN RIGHT CLICK POPUP MENU