ش | ی | د | س | چ | پ | ج |
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
MIIM_STRING = 64
MIIM_FTYPE = 256
MFT_RIGHTORDER = 0x2000
MF_BYPOSITION = 0x00000400
For j = 0 To MenuCount - 1
With mii
(BuffLen = GetMenuStringA(hMenu, j, Buff, Len(Buff) + 1, &H400
(txt = Left$(Buff, BuffLen
(cbSize = Len(mii
fMask = 64 Or 256
fTyp = &H2000
dwtypedata = arr(j) 'txt
cch = Len(.dwtypedata) + 1
.fState = &H3 'mfs_disabled
End With
SetMenuItemInfoA hSysMenu, GetMenuItemID(hMenu, j), 0, mii
Next
"InsertMenuA hSysMenu, 6, MF_BYPOSITION Or MF_STRING Or &H2000, 10200, ByVal "Salam
For j = 0 To (hc + 1) - 1
Frees the specified global memory object and invalidates its handle
(pSD=GlobalAlloc(GHND,Len(MyString)+1
(GlobalFree(pSD
Dim pSD As LongPtr
$MyString
"MyString="MyClose
(pSD=GlobalAlloc(GHND,Len(MyString)+1
Dim mii As MENUITEMINFOA
With mii
(cbSize = Len(mii
.fMask = &H40 Or &H100 ' miim_string Or miim_ftype
.fTyp=MFT_STRING
"dwtypedata =pSD ' "MyClose
cch = Len(MyString) + 1
End With
SetMenuItemInfoA hSysMenu, SC_CLOSE, 0,mii
GlobalFree pSD
Private Sub Form_Load() Dim s As String ' s = ChrW(&HCD38) & ChrW(&HC988) & ChrW(&HBD38) & ChrW(&H7EBA) ModifyMenuW GetMenu(Me.hwnd), 0, MF_BYPOSITION, 0, ByVal StrPtr(s) End Sub