if MessageBox('确实要删除吗?', '管统系统',MB_OKCANCEL) = mrOK then
  ......

解决方案 »

  1.   

    with Application do
                    begin
                      NormalizeTopMosts;
                  if MessageBox('确实要删除吗?', '管统系统',MB_OKCANCEL)=MB_OK then
                      RestoreTopMosts;
      

  2.   

    sorry!
    应该是:
    if MessageBox('确实要删除吗?', '管统系统',MB_OKCANCEL)=IDOK then
                      
      

  3.   

    with Application do begin
        NormalizeTopMosts;
        if MessageBox('确实要删除吗?', '管统系统',MB_OKCANCEL)=1 then
          RestoreTopMosts;
    end; 你去试试看吧
      

  4.   

    with Application do begin
        NormalizeTopMosts;
        if MessageBox('确实要删除吗?', '管统系统',MB_OKCANCEL)=mrok then
          RestoreTopMosts;
    end;
      

  5.   

    就用api原生的messagebox
    if messagebox(handle,'确实要删除吗?','管理系统',mb_okcancel)=mrok then
      RestoreTopMosts;
    绝对OK,我经常用的