LRESULT CALLBACK IME_getMessageHook(int code, WPARAM wParam, LPARAM lParam) { MSG* pmsg=(MSG*)lParam; if(pmsg->message==wm_candidateChange) { handleCandidates(pmsg->hwnd); } else { handleCandidatesClosed(pmsg->hwnd); } handleIMEWindowMessage(pmsg->hwnd,pmsg->message,pmsg->wParam,pmsg->lParam); return 0; }
static LRESULT CALLBACK IME_callWndProcHook(int code, WPARAM wParam, LPARAM lParam) { CWPSTRUCT* pcwp=(CWPSTRUCT*)lParam; handleIMEWindowMessage(pcwp->hwnd,pcwp->message,pcwp->wParam,pcwp->lParam); return 0; }