15,473
社区成员




g_hhook = SetWindowsHookEx(WH_CALLWNDPROCRET, (HOOKPROC)GetMsgProc, theApp.m_hInstance, dwThreadId);
LRESULT CALLBACK GetMsgProc(int nCode, WPARAM wParam, LPARAM lParam)
{
MSG* mesInfo = (MSG*)lParam;
//根据mesInfo的什么消息,判断是创建
//根据mesInfo的什么消息,判断是销毁
//根据mesInfo的什么消息,判断是有新消息
return CallNextHookEx(g_hhook, nCode, wParam, lParam);
}