messagebox('123,'34',mb_yesno+mb_defbutton2+mb_iconstop+mb_applmodal)<>idyes then )
messagedlg('12',mtconfirmation,[mbyes,mbno],0)=mbyes then
if MessageBox(Handle, 'Hello', 'Test', MB_YESNO or MB_ICONINFORMATION) = IDYES then ShowMessage('OK');
只有 taxi(游少爷) 的能编译通过 if MessageBox(Handle, 'Hello', 'Test', MB_YESNO or MB_ICONINFORMATION) = IDYES then ShowMessage('OK');还有别的能通过的吗? 每次都调用自己写的对话框好象不太好意思。
ShowMessage('OK');
if MessageBox(Handle, 'Hello', 'Test', MB_YESNO or MB_ICONINFORMATION) = IDYES then
ShowMessage('OK');还有别的能通过的吗? 每次都调用自己写的对话框好象不太好意思。
不要想有什么学习的捷径,都是要靠自己的长期积累和努力的。你可以看看《Delphi5开发人员指南》这本书。
只要你看,肯定是有收获的。
if Application.MessageBox('你好', '测试', MB_YESNO or MB_ICONINFORMATION) = IDYES then
ShowMessage('OK');多试几次,就行了