windows_programming_notes.nbk: Home | Index | Next Page: OleLoadPicture | Previous Page: NMITEMACTIVATE
The OffsetRect function moves the specified rectangle by the specified offsets.
BOOL OffsetRect( LPRECT lprc, // rectangle int dx, // horizontal offset int dy // vertical offset );
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
Windows NT/2000/XP: To get extended error information, call GetLastError.
Because applications can use rectangles for different purposes, the rectangle functions do not use an explicit unit of measure. Instead, all rectangle coordinates and dimensions are given in signed, logical values. The mapping mode and the function in which the rectangle is used determine the units of measure.
windows_programming_notes.nbk: Home | Index | Next Page: OleLoadPicture | Previous Page: NMITEMACTIVATE
Notebook exported on Monday, 7 July 2008, 18:56:50 PM Eastern Daylight Time