13.07.2015 Views

REFERENCE GUIDE

REFERENCE GUIDE

REFERENCE GUIDE

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ScrollWindowReturn valueCommentsNone.rectangle are scrolled. If IpClipRect is NULL, the entirewindow is scrolled.If the caret is in the window being scrolled, ScrollWindow automaticallyhides the caret to prevent it from being erased, then restores the caret afterthe scroll is finished. The caret position is adjusted accordingly.The area uncovered by the ScrollWindow function is not repainted, but iscombined into the window's update region. The application willeventually receive a WM_PAINT message notifying it that the regionneeds repainting. To repaint the uncovered area at the same time thescrolling is done, call the UpdateWindow function immediately aftercalling ScrollWindow.If the IpRect parameter is NULL, the positions of any child windows in thewindow are offset by the amount specified by XAmount and YAmount,and any invalid (unpainted) areas in the window are also offset.ScrollWindow is faster when IpRect is NULL.If the IpRect parameter is not NULL, the positions of child windows arenot changed, and invalid areas in the window are not offset. To preventupdating problems when IpRect is not NULL, call the UpdateWindowfunction to repaint the window before calling ScrollWindow.SelectClipRgnSyntaxint SelectClipRgn(hDC, hRgn)function SelectClipRgn(DC: HDC; Rgn: HRgn): Integer;This function selects the given region as the current clipping region for thespecified device context. Only a copy of the selected region is used. Theregion itself can be selected for any number of other device contexts, or itcan be deleted.Parameters hDC H DC Identifies the device context.Return valuehRgnHRGN Identifies the region to be selected.The return value specifies the region's type. It can be anyone of thefollowing values:480 Software development kit

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!