网站首页  词典首页

请输入您要查询的函数:

 

术语 drawfocusrect
释义 DrawFocusRect
语法:
BOOL DrawFocusRect(
__in HDC hDC,
__in const RECT *lprc
);
DrawFocusRect函数
该DrawFocusRect函数绘制一个用于指示矩形具有焦点矩形的样式。
参数
hDC [in]
一个句柄,设备上下文。
利比里亚炼油公司 [in]
一个RECT结构,指定指针逻辑矩形的坐标。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。
备注
DrawFocusRect只能在MM_TEXT模式。
由于DrawFocusRect是一个异或函数,称它是相同的矩形第二次取消了从屏幕的矩形。
此函数绘制一个矩形,不能滚动。要滚动一个地区内的这个功能吸引了矩形,调用DrawFocusRect删除屏幕上的矩形,滚动的区域,然后调用DrawFocusRect再次提请在新的工作岗位的矩形。
Windows XP中:重点现在可以矩形厚度大于1个像素,因此它更适合高分辨率可见,高密度显示屏和可访问的需求。这是处理的SPI_SETFOCUSBORDERWIDTH和SystemParametersInfo SPI_SETFOCUSBORDERHEIGHT。
实例
有关示例,请参阅“创建一个所有者描述的列表框在使用列表框”。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinuser.h(头文件:winuser.h)
LibraryUser32.lib
DLLUser32.dll
参见
绘画和绘图概述
绘画和绘图功能
FrameRect
RECT
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==DrawFocusRect Function
The DrawFocusRect function draws a rectangle in the style used to indicate that the rectangle has the focus.
Syntax
BOOL DrawFocusRect(
__in HDC hDC,
__in const RECT *lprc
);
Parameters
hDC [in]
A handle to the device context.
lprc [in]
A pointer to a RECT structure that specifies the logical coordinates of the rectangle.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
Remarks
DrawFocusRect works only in MM_TEXT mode.
Because DrawFocusRect is an XOR function, calling it a second time with the same rectangle removes the rectangle from the screen.
This function draws a rectangle that cannot be scrolled. To scroll an area containing a rectangle drawn by this function, call DrawFocusRect to remove the rectangle from the screen, scroll the area, and then call DrawFocusRect again to draw the rectangle in the new position.
Windows XP: The focus rectangle can now be thicker than 1 pixel, so it is more visible for high-resolution, high-density displays and accessibility needs. This is handled by the SPI_SETFOCUSBORDERWIDTH and SPI_SETFOCUSBORDERHEIGHT in SystemParametersInfo .
Examples
For an example, see "Creating an Owner-Drawn List Box" in Using List Boxes .
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinuser.h (include Windows.h)
LibraryUser32.lib
DLLUser32.dll
See Also
Painting and Drawing Overview
Painting and Drawing Functions
FrameRect
RECT
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd162479(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:27:26