Advertisement
appo

To close the messagebox

Dec 27th, 2013
419
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.25 KB | None | 0 0
  1. procedure CloseMessageBox(AWnd: HWND; AMsg: UINT; AIDEvent: UINT_PTR;
  2. ATicks: DWORD); stdcall;
  3. var
  4. Wnd: HWND;
  5. begin
  6. KillTimer(AWnd, AIDEvent);
  7. Wnd := GetActiveWindow;
  8. if IsWindow(Wnd) then
  9. PostMessage(Wnd, WM_CLOSE, 0, 0);
  10. end;
  11.  
  12. // Coded by Appo //
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement