网站首页  词典首页

请输入您要查询的函数:

 

术语 scrolldc
释义 ScrollDC
语法:
BOOL ScrollDC( HDC hDC,
int dx,
int dy,
const RECT *lprcScroll,
const RECT *lprcClip,
HRGN hrgnUpdate,
LPRECT lprcUpdate
);
ScrollDC功能
滚动功能的ScrollDC位矩形的横向和纵向。
参数
hDC
[in]句柄设备上下文包含位被滚动。
霉素
[in]指定的金额,设备单位,横向滚动。此参数必须是一个负值,滚动到左边。

[in]指定的金额,在设备单位,垂直滚动。此参数必须是一个负值向上滚动。
lprcScroll
[in]指向一个RECT结构载有位坐标,滚动。受影响的滚动操作只位在这个矩形的交集位和lprcClip指定的矩形。如果lprcScroll为NULL,则整个工作区使用。
lprcClip
[in]指向一个RECT结构载有剪辑矩形坐标。该画将只位是8位,这里面的滚动操作后仍然矩形已经完成。如果lprcClip为NULL,则整个工作区使用。
hrgnUpdate
[in]句柄的滚动过程中发现的地区。 ScrollDC定义此区域,它不一定是一个矩形。
lprcUpdate
[out]指向一个RECT结构,它接收的边界滚动更新区域矩形坐标。这是最大的矩形区域,需要重新粉刷。当函数返回时,在结构中的值在客户的坐标,无论指定设备上下文的映射模式。这允许应用程序在调用使用更新区域的InvalidateRgn功能,如果需要。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
如果lprcUpdate参数为NULL,系统不计算更新的矩形。如果同时hrgnUpdate和lprcUpdate参数是NULL,则系统不计算更新区域。如果hrgnUpdate不为NULL,系统就好像它包含一个有效的句柄滚动过程中所发现的该地区(由ScrollDC定义的收益)。
当您必须滚动窗口的整个工作区,使用ScrollWindowEx功能。
功能信息
最低DLL版本 comctl32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低操作系统Windows 95,Windows NT 3.1
参见
InvalidateRgn,RECT,ScrollWindowEx
==英文原文==ScrollDC Function
The ScrollDC function scrolls a rectangle of bits horizontally and vertically.
Syntax
BOOL ScrollDC( HDC hDC,
int dx,
int dy,
const RECT *lprcScroll,
const RECT *lprcClip,
HRGN hrgnUpdate,
LPRECT lprcUpdate
);
Parameters
hDC
[in] Handle to the device context that contains the bits to be scrolled.
dx
[in] Specifies the amount, in device units, of horizontal scrolling. This parameter must be a negative value to scroll to the left.
dy
[in] Specifies the amount, in device units, of vertical scrolling. This parameter must be a negative value to scroll up.
lprcScroll
[in] Pointer to a RECT structure containing the coordinates of the bits to be scrolled. The only bits affected by the scroll operation are bits in the intersection of this rectangle and the rectangle specified by lprcClip. If lprcScroll is NULL, the entire client area is used.
lprcClip
[in] Pointer to a RECT structure containing the coordinates of the clipping rectangle. The only bits that will be painted are the bits that remain inside this rectangle after the scroll operation has been completed. If lprcClip is NULL, the entire client area is used.
hrgnUpdate
[in] Handle to the region uncovered by the scrolling process. ScrollDC defines this region; it is not necessarily a rectangle.
lprcUpdate
[out] Pointer to a RECT structure that receives the coordinates of the rectangle bounding the scrolling update region. This is the largest rectangular area that requires repainting. When the function returns, the values in the structure are in client coordinates, regardless of the mapping mode for the specified device context. This allows applications to use the update region in a call to the InvalidateRgn function, if required.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError .
Remarks
If the lprcUpdate parameter is NULL, the system does not compute the update rectangle. If both the hrgnUpdate and lprcUpdate parameters are NULL, the system does not compute the update region. If hrgnUpdate is not NULL, the system proceeds as though it contains a valid handle to the region uncovered by the scrolling process (defined by ScrollDC).
When you must scroll the entire client area of a window, use the ScrollWindowEx function.
Function Information
Minimum DLL Versioncomctl32.dll
HeaderDeclared in Winuser.h, include Windows.h
Import libraryUser32.lib
Minimum operating systemsWindows 95, Windows NT 3.1
See Also
InvalidateRgn , RECT, ScrollWindowEx
==原始网址==http://msdn.microsoft.com/en-us/library/bb787589(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 11:28:42