Click here to Skip to main content
14,695,504 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I Have Installed A Hook With WH_GETMESSAGE On A DLL Using MFC.But When I Send Postmessage To My Parent Window It Is Not Received...

HWND hwndmain; //(Assigned The Value Of Main Window HWND)

static UINT snd=::RegisterWindowMessage(L"mainwnd_msg");


The Same Message Is Declared In The Main Window To Receive The Registered Window Message And Added On register message event also But It Is Not Working Kindly Help Me I'm Not Able To Find What Is Happenning...

What I have tried:

LRESULT CALLBACK msgProc(int ncode, WPARAM wparam, LPARAM lparam)

return CallNextHookEx(hk, ncode, wparam, lparam);
Updated 1-Jan-19 23:06pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900