Advertisement
TLama

Untitled

Mar 11th, 2013
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.28 KB | None | 0 0
  1. function Active_window_mf: Boolean;
  2. var
  3.   WndHandle: HWND;
  4.   ClassName: array[0..256] of Char;
  5. begin
  6.   Result := False;
  7.   WndHandle := GetForegroundWindow;
  8.   if GetClassName(WndHandle, @ClassName[0], Length(ClassName)) > 0 then
  9.     Result := string(ClassName) = 'SDIMainFrame';
  10. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement