RECT rcClip; // new area for ClipCursor RECT rcOldClip; // previous area for ClipCursor // Record the area in which the cursor can move. ÀÌÀü À̵¿ ¿µ¿ª È®º¸ GetClipCursor(&rcOldClip); // Get the dimensions of the application's window. À©µµ¿ìÀÇ Å©±â ¾ò±â (¸¶¿ì½º À̵¿À» Á¦ÇÑÇÒ ¿µ¿ª »ý¼º) GetWindowRect(hwnd, &rcClip); // Confine the cursor to the application's window. ¸¶¿ì½º À̵¿¿µ¿ª Á¦ÇÑ ClipCursor(&rcClip); ¿©·¯°¡Áö ÀÛ¾÷ // Restore the cursor to its previous area. ÀÌÀü ¸¶¿ì½º À̵¿¿µ¿ª º¹¿ø ClipCursor(&rcOldClip); ÀÚ·á´Â MSDN¿¡¼­ °¡Á® ¿Ô°í¿ä ¿µ¹®°ú ÇѱÛÀÌ ÀÖÀ¸´Ï »ç¿ëÇϱ⠽¬¿ï°Ì´Ï´Ù. ±×·³