Programming - cpueblo.com

WIN 에서 메시지 이벤트 가로채기~~


글쓴이 : 유광희 날짜 : 2002-07-15 (월) 16:58 조회 : 14197
lpWndProcOld = (void *) GetWindowLong(윈도우 헨들,GWL_WNDPROC);
SetWindowLong(윈도우 헨들,GWL_WNDPROC,WndProc);

윈도우 헨들이란.. HWND 를 의미하는 것이며..

WndProc 는 콜백 함수이다.

자 이 WndProc 의 예를 보쟈


LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{

return CallWindowProc(lpWndProcOld,hwnd,message,wParam,lParam);
}


return 직전에 메세지를 바꾸던 조작을 하던 지지고 볶던 맘대로 하시라!!!

헤헤.. (^_^)