ش | ی | د | س | چ | پ | ج |
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 |
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