OnMouseMove() in CMainFrame
Amir Salzberg -- amirfalz@netvision.net.il Thursday, May 02, 1996 I am writing an MDI application on visual C++ 1.52/windows 3.1 I have to write stuff in status bar using SetPaneText() while the mouse cursor is moving. However, the OnMouseMove command doesn't work. I put the OnMouseMove function in the CMainFrame class, because in CView class it works only after a file was open (in MDI). I tried SetCapture, but it didn't help. What am I doing wrong??? Thanks in advance, Amir.
John Schroedl -- saspjs@unx.sas.com Monday, May 06, 1996 The mouse moves are most likely going to the MDICLIENT window, not to the CMainFrame. You would need to handle the mousemove messages there. -John At 11:28 AM 5/2/96 +0300, you wrote: >I am writing an MDI application on visual C++ 1.52/windows 3.1 > >I have to write stuff in status bar using SetPaneText() while the mouse >cursor is moving. However, the OnMouseMove command doesn't work. I put the >OnMouseMove function in the CMainFrame class, because in CView class it >works only after a file was open (in MDI). I tried SetCapture, but it didn't >help. What am I doing wrong??? > >Thanks in advance, Amir. > > > -------------------------------------------------------------------- John Schroedl (919) 677-8000 x6706 Windows & UI Technology saspjs@unx.sas.com
| Вернуться в корень Архива |