   few win32 questions
  1. How do i stop the mouse from leaving my window? , im trying the following, but it just makes the movement go oddPOINT pt;GetCursorPos(&pt);ScreenToClient(mhMainWnd, &pt);if(pt.x < 0) pt.x = 0;if(pt.x > 800) pt.x = 800;if(pt.y < 0) pt.y = 0;if(pt.y > 600) pt.y = 600;ClientToScreen(mhMainWnd, &pt);SetCursorPos(pt.x, pt.y);2. What function is used within the win32 code, to test the repeat delay between a key being pressed and held done. I need to reduce that delay.   
  (1) takes 5 seconds of Google: http://msdn2.microsoft.com/en-us/library/ms648383.aspx(2) is well-hidden in MSDN and more challenging (especially since MSDN search seems to be down right now):http://msdn2.microsoft.com/en-us/library/ms724947(VS.85).aspx   ;  I'd strongly advise against overriding user key repeat settings. If it's set too low, the user wants it that low, they can change it from the control pannel.If you need a higher repeat rate, do it in code by checking WM_KEYDOWN and WM_KEYUP messages and auto-repeat the key if the key is held down for a certain time.   