S
sujing1982
Unregistered / Unconfirmed
GUEST, unregistred user!
try
PopupMenu := CreatePopupMenu;
AppendMenu(PopupMenu,MF_ENABLED or MF_STRING, ID_MEU_WIN, NAME_MEU_WIN);
AppendMenu(PopupMenu,MF_ENABLED or MF_STRING, ID_MEU_POP, NAME_MEU_POP);
SetForegroundWindow(WinHandle);
GetCursorPos(MousePos);
TrackPopupMenu(PopupMenu,TPM_LEFTALIGN or TPM_LEFTBUTTON,
MousePos.X, MousePos.Y, 0, WinHandle, nil);
finally
DestroyMenu(PopupMenu);
end;
CreatePopupMenu 之后内存明显增加
DestroyMenu(PopupMenu) 之后却没看到内存减少 怎样才能把他占用的内存释放掉
分很少了 大虾们见谅.
PopupMenu := CreatePopupMenu;
AppendMenu(PopupMenu,MF_ENABLED or MF_STRING, ID_MEU_WIN, NAME_MEU_WIN);
AppendMenu(PopupMenu,MF_ENABLED or MF_STRING, ID_MEU_POP, NAME_MEU_POP);
SetForegroundWindow(WinHandle);
GetCursorPos(MousePos);
TrackPopupMenu(PopupMenu,TPM_LEFTALIGN or TPM_LEFTBUTTON,
MousePos.X, MousePos.Y, 0, WinHandle, nil);
finally
DestroyMenu(PopupMenu);
end;
CreatePopupMenu 之后内存明显增加
DestroyMenu(PopupMenu) 之后却没看到内存减少 怎样才能把他占用的内存释放掉
分很少了 大虾们见谅.