网站首页  词典首页

请输入您要查询的函数:

 

术语 drawcaption
释义 DrawCaption
语法:
BOOL DrawCaption(
__in HWND hwnd,
__in HDC hdc,
__in LPCRECT lprc,
__in UINT uFlags
);
DrawCaption功能
该DrawCaption函数绘制窗口的标题。
参数
hwnd [in]
句柄的一个窗口,提供文本和图标的窗口的标题。
hdc [in]
一个句柄,设备上下文。函数绘制这个设备上下文窗口的标题。
利比里亚炼油公司 [in]
一个RECT结构,指定为在逻辑坐标的窗口标题的边界矩形的指针。
uFlags [in]
绘图选项。此参数可以是零个或多个下列值。
ValueMeaning
DC_ACTIVEThe函数使用的颜色表明了一种积极的标题。
DC_BUTTONSIf设置,函数绘制在标题栏上的按钮(最小化,还原或关闭应用程序)。
DC_GRADIENTWhen设置此标志,函数使用COLOR_GRADIENTACTIVECAPTION(如果DC_ACTIVE国旗集)或标题栏的颜色COLOR_GRADIENTINACTIVECAPTION。
如果此标志没有设置,该函数使用两种颜色COLOR_ACTIVECAPTION或COLOR_INACTIVECAPTION。
DC_ICONThe函数绘制图纸的图标时,标题文本。
DC_INBUTTONThe函数绘制作为一个按钮标题。
DC_SMALLCAPThe函数绘制一个小标题,使用目前的小标题字体。
DC_TEXTThe函数绘制标题文本在制定标题。
如果DC_SMALLCAP指定的函数绘制一个正常窗口的标题。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinuser.h(头文件:winuser.h)
LibraryUser32.lib
DLLUser32.dll
参见
绘画和绘图概述
绘画和绘图功能
RECT
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==DrawCaption Function
The DrawCaption function draws a window caption.
Syntax
BOOL DrawCaption(
__in HWND hwnd,
__in HDC hdc,
__in LPCRECT lprc,
__in UINT uFlags
);
Parameters
hwnd [in]
A handle to a window that supplies text and an icon for the window caption.
hdc [in]
A handle to a device context. The function draws the window caption into this device context.
lprc [in]
A pointer to a RECT structure that specifies the bounding rectangle for the window caption in logical coordinates.
uFlags [in]
The drawing options. This parameter can be zero or more of the following values.
ValueMeaning
DC_ACTIVEThe function uses the colors that denote an active caption.
DC_BUTTONSIf set, the function draws the buttons in the caption bar (to minimize, restore, or close an application).
DC_GRADIENTWhen this flag is set, the function uses COLOR_GRADIENTACTIVECAPTION (if the DC_ACTIVE flag was set) or COLOR_GRADIENTINACTIVECAPTION for the title-bar color.
If this flag is not set, the function uses COLOR_ACTIVECAPTION or COLOR_INACTIVECAPTION for both colors.
DC_ICONThe function draws the icon when drawing the caption text.
DC_INBUTTONThe function draws the caption as a button.
DC_SMALLCAPThe function draws a small caption, using the current small caption font.
DC_TEXTThe function draws the caption text when drawing the caption.

If DC_SMALLCAP is specified, the function draws a normal window caption.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
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
RECT
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd162476(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:30:18