Click here to Skip to main content
15,925,399 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Detect Modem Connection Pin
vcplusplus21-Sep-04 1:55
vcplusplus21-Sep-04 1:55 
GeneralRe: Detect Modem Connection Pin
ftosteve21-Sep-04 4:07
ftosteve21-Sep-04 4:07 
GeneralDisable Network Adapter Pin
ftosteve21-Sep-04 0:42
ftosteve21-Sep-04 0:42 
GeneralRe: Disable Network Adapter Pin
ThatsAlok7-May-05 0:42
ThatsAlok7-May-05 0:42 
Generalactivex events in a dll Pin
macmac3821-Sep-04 0:10
macmac3821-Sep-04 0:10 
Generalinpout32.dll expert help needed Pin
JBMW20-Sep-04 23:35
JBMW20-Sep-04 23:35 
GeneralTreeView in a virtual CListCtrl Pin
H0nger20-Sep-04 23:28
H0nger20-Sep-04 23:28 
GeneralASCII to HEX conversion Pin
wendy_wong20-Sep-04 23:02
wendy_wong20-Sep-04 23:02 
GeneralRe: ASCII to HEX conversion Pin
RChin21-Sep-04 0:18
RChin21-Sep-04 0:18 
GeneralRe: ASCII to HEX conversion Pin
David Crow21-Sep-04 2:54
David Crow21-Sep-04 2:54 
GeneralRe: ASCII to HEX conversion Pin
wendy_wong21-Sep-04 14:15
wendy_wong21-Sep-04 14:15 
GeneralPath of Application Pin
Neelesh K J Jain20-Sep-04 22:56
Neelesh K J Jain20-Sep-04 22:56 
GeneralRe: Path of Application Pin
Graham Bradshaw20-Sep-04 23:01
Graham Bradshaw20-Sep-04 23:01 
GeneralRe: Path of Application Pin
Neelesh K J Jain20-Sep-04 23:48
Neelesh K J Jain20-Sep-04 23:48 
GeneralRe: Path of Application Pin
Graham Bradshaw20-Sep-04 23:55
Graham Bradshaw20-Sep-04 23:55 
GeneralRe: Path of Application Pin
Neelesh K J Jain21-Sep-04 0:15
Neelesh K J Jain21-Sep-04 0:15 
GeneralRe: Path of Application Pin
Antony M Kancidrowski21-Sep-04 1:17
Antony M Kancidrowski21-Sep-04 1:17 
GeneralRe: Path of Application Pin
nguyenvhn21-Sep-04 1:19
nguyenvhn21-Sep-04 1:19 
GeneralRe: Path of Application Pin
vcplusplus21-Sep-04 2:49
vcplusplus21-Sep-04 2:49 
GeneralRe: Path of Application Pin
ThatsAlok23-Sep-04 3:41
ThatsAlok23-Sep-04 3:41 
General"Print Background Colours and Images" in CWebBrowser2 Ctrl Pin
jerry0davis20-Sep-04 22:17
jerry0davis20-Sep-04 22:17 
GeneralCursorClip Drawing Region Pin
jw8120-Sep-04 22:01
jw8120-Sep-04 22:01 
GeneralRe: CursorClip Drawing Region Pin
Branislav21-Sep-04 2:15
Branislav21-Sep-04 2:15 
GeneralRe: CursorClip Drawing Region Pin
jw8121-Sep-04 16:59
jw8121-Sep-04 16:59 
GeneralRe: CursorClip Drawing Region Pin
Branislav22-Sep-04 1:51
Branislav22-Sep-04 1:51 
POINT p;
GetClientRect(hwnd, &rcClip);
p.x = rcClip.left;
p.y = rcClip.top;
ClientToScreen(hwnd, &p);
OffsetRect(&rcClip, p.x, p.y);
ClipCursor(&rcClip);
ShowCursor(TRUE);
//////////////////////////////
// The GetClientRect function retrieves the coordinates of a window's client area. The client coordinates specify the upper-left and lower-right corners of the client area. Because client coordinates are relative to the upper-left corner of a window's client area, the coordinates of the upper-left corner will be (0,0).
// The ClientToScreen function replaces the client coordinates in the POINT structure with the screen coordinates. The screen coordinates are relative to the upper-left corner of the screen.
// The OffsetRect function moves the specified rectangle by the specified offsets.
// The ClipCursor function confines the cursor to a rectangular area on the screen. If a subsequent cursor position (set by the SetCursorPos function or the mouse) lies outside the rectangle, Windows automatically adjusts the position to keep the cursor inside the rectangular area.

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.