I do bunlge to change "System Menu Item" to Bold Style + Change Size
but result is false.
Masters, please help me.
Thanks in Advanced.
Code: Select all
Procedure SysMenuAdd(hwnd, ret, nPos.l, flage, Text.s)
; English forum: http://www.purebasic.fr/english/viewtopic.php?p=70325#70325
; Author: GreenGiant (updated for PB 4.00 by edel)
; Date: 26. September 2004
; OS: Windows
; Demo: No
SystemMenu = GetSystemMenu_(hwnd, #False)
#MIIM_STATE=1
#MFS_DEFAULT=4096
bold.MENUITEMINFO
bold\cbSize=SizeOf(bold)
bold\fMask=#MIIM_STATE
bold\fState=#MFS_DEFAULT
SetMenuItemInfo_(SystemMenu,7,#True,bold) ;2 specifies the item to be made bold
InsertMenu_(SystemMenu, nPos, #MF_BYPOSITION | flage , ret, @Text)
DrawMenuBar_(hwnd)
ProcedureReturn retA = ret
EndProcedure
;##################################################################################################
OpenWindow(0, 0, 0, 200, 200, "Box", #PB_Window_SystemMenu | #PB_Window_ScreenCentered, PID) And CreateGadgetList(WindowID(0))
SysMenuAdd(WindowID(Window_0), 10000, 7, #MFS_DEFAULT," About")
Repeat
ev = WaitWindowEvent()
Until ev = #PB_Event_CloseWindow