Vlatko
Sep 1st, 2000, 06:21 AM
How Can i use the ClipCursor Function to make the cursor movement area the same as my app's RECT;
When I try this code:
typedef struct _RECT {
LONG left;
LONG top;
LONG right;
LONG bottom;
} RECT;
RECT r;
GetWindowRect((LPRECT)&r);
ClipCursor(r);
VC++ says this:
error C2664: 'ClipCursor' : cannot convert parameter 1 from 'struct CHahaDlg::OnInitDialog::_RECT' to 'const struct tagRECT *'
When I try this code:
typedef struct _RECT {
LONG left;
LONG top;
LONG right;
LONG bottom;
} RECT;
RECT r;
GetWindowRect((LPRECT)&r);
ClipCursor(r);
VC++ says this:
error C2664: 'ClipCursor' : cannot convert parameter 1 from 'struct CHahaDlg::OnInitDialog::_RECT' to 'const struct tagRECT *'