if
Canedit = MessageBox(Handle, '你真的要退出吗?', '警告',
MB_OKCANCEL + MB_ICONWARNING) = IDOK then
?????????
改成:
if
Canedit = (MessageBox(Handle, '你真的要退出吗?', '警告',
MB_OKCANCEL + MB_ICONWARNING) = IDOK) then
最好是:
if
MessageBox(Handle, '你真的要退出吗?', '警告',
MB_OKCANCEL + MB_ICONWARNING) = IDOK then
笔误,修改如下:
if
Canedit = (MessageBox(Handle, '你真的要退出吗?', '警告',
MB_OKCANCEL + MB_ICONWARNING) = IDOK) then
--------------------------------
if
True = (MessageBox(Handle, '你真的要退出吗?', '警告',
MB_OKCANCEL + MB_ICONWARNING) = IDOK) then