check if mouse button being pressed (win32)
Posted on 2007-08-07
I have a standard wizard generated MDI app. When the user opens a new file I create a new child frame/wnd. Before the child frame is created, I prompt the user with a file selction dialog, they have to pick a file to open. When they do this, my MouseMove() handler is called, which looks like:
void CChildView::OnMouseMove(UINT nFlags, CPoint point)
if ((nFlags & MK_LBUTTON) ||
(nFlags & MK_RBUTTON))
TRACE("Yeah one of the mouse buttons is being held while moving....\n");
I don't understand why that's getting called when I pick a file from the choose file dialog. If I select a file to open with the enter key, then the mouse move function is not called....