MouseWheel event not getting captured .

  • Thread starter Thread starter madhusudanc_
  • Start date Start date
M

madhusudanc_

Guest
trans.gif

Hello Guys

Currently i am migrating one of my MFC applications to Windows10 64Bit from Windows7 32 bit.Suddenly my mousewheel stopped working.

The same code works in the application on windows 7 .

Can anyone pls advise ?


//Mouse registration

m_hMouseHook = SetWindowsHookEx( WH_MOUSE, &MouseHookProc, AfxGetInstanceHandle(), GetCurrentThreadId() );






//Hookproc callback
LRESULT CALLBACK MouseHookProc(int nCode, WPARAM wParam, LPARAM lParam)
{
CPPUITrace objTrace(_T("CPostProcUIControlsDialog::MouseHookProc"));

objTrace.LogError(_T("Madhu::Got wParam %d and nCode is %d"),wParam,nCode); //GEtting mousemove events but not mousescroll,
if (nCode > 0)
{
if (wParam == WM_MOUSEWHEEL)
{

objTrace.LogError(_T("Madhu::Got wParam %d"), wParam);

------------------------

Madhusudan

Continue reading...
 
Back
Top