Delphi/꿀팁
외부 프로그램을 내 폼 안에 넣기
var hSrcHandle: THandle; hDstHandle: THandle; function EnumWindowProc(hWindow: HWND; lParam: LPARAM): Boolean; stdcall; Var WndText: string; begin Result := True; //화면에 보이는 프로그램으로 넣어야 하므로 작업표시줄에 보이지 않으면 제외 if not IsWindowVisible(hWindow) then Exit; SetLength(WndText, MAX_PATH); //Caption/Title명으로 프로그램 체크 if GetWindowText(hWindow, PChar(WndText), MAX_PATH) > 0 then begin if Pos('메모장', WndText) > ..