   mfc & OpenGL - intermittent keyboard input
  Hi all,I just ported my program from win32 to MFC. I am using keyboard input for zooming in/out the scene, and capture keyboard input via OnKeyDown handler. But the zooming action is intermittent - not smooth, unlike the mouse.I also encountered this in win32 version, but was able to overcome by handling keyboard input in WinMain rather than in WndProc. How can I solve this in MFC? I guess we are not able to edit the WinMain procedure?Thank you for your attention,   --Kemal 
  I guess I can accomplish it by holding a keyZoomDown boolean and continuously increment/decrement the zoom parameter in the main messaging loop. But where is the main messaging loop in an MFC application?   --Kemal ;  MFC is event driven, there is no main loop.  You''ll need to set up a timer.  You may want to just use pure Win32 and ditch MFC altogether. ;  There is a way, and i'll post it as soon as i get back (tomorrow) as i don't know how i did it right now. What i made was a free look view in which you can move when you press the left mouse button using w/s/a/d .EDIT: And the main messaging loop for an MFC window is WndProc   [edited by - Tree Penguin on February 10, 2004 8:43:12 AM]