I am looking for informations explaining how to add an item in a window
system menu.
I guess I have to manage this with a DLL but... what else...

If anybody can help, thks in advance.
Regards,
WW
Code: Select all
If OpenWindow(0, 100, 200, 195, 260, "PureBasic Window", #PB_Window_SystemMenu | #PB_Window_MinimizeGadget | #PB_Window_MaximizeGadget)
hwndmenu=GetSystemMenu_(WindowID(0),0)
minfo.MENUITEMINFO
minfo\cbSize=SizeOf(MENUITEMINFO)
minfo\fMask=#MIIM_TYPE
minfo\fType=#MFT_STRING
minfo\fState=#MFS_ENABLED
minfo\dwTypeData=@"Hello!"
InsertMenuItem_(hwndmenu, 0,1,minfo)
Repeat
EventID = WaitWindowEvent()
If EventID = #PB_Event_CloseWindow
Quit = 1
EndIf
Until Quit = 1
EndIf
End