Re: Right click mouse window activation disabling

Tech-Archive recommends: Speed Up your PC by fixing your registry



Try this:

int CMyDialog::OnMouseActivate(CWnd* pDesktopWnd, UINT nHitTest, UINT
message)
{
if(message == WM_RBUTTONDOWN)
return MA_NOACTIVATEANDEAT; // Does not activate the window, but
discards the mouse message.

return CFrameWnd::OnMouseActivate(pDesktopWnd, nHitTest, message);
}

-SM
.


Quantcast