반응형

현재 마우스 위치의 윈도우 핸들 얻기 - WindowFromPoint()

등록자 : 유광희, 05-08-05 01:29:37

google_protectAndRun("render_ads.js::google_render_ad", google_handleError, google_render_ad); POINT  Point;
char ClassName[128];

GetCursorPos(&Point);

HWND hWnd = WindowFromPoint(Point);

GetClassName(hWnd, (char *)&ClassName, 128);

if (*ClassName)
OutputDebugString(ClassName);

반응형

'프로그래밍(Programming) > MFC&API' 카테고리의 다른 글

메뉴바 숨기기  (0) 2012.11.01
툴바,상태바 보이기/숨기기  (0) 2012.11.01
현재 마우스 좌표얻기  (0) 2012.11.01
AfxMessageBox 인자 총정리  (0) 2012.11.01
파일 세이브 다이얼로그  (0) 2012.11.01

+ Recent posts