网站首页  词典首页

请输入您要查询的函数:

 

术语 setdlgitemint
释义 SetDlgItemInt
语法:
BOOL SetDlgItemInt( HWND hDlg,
int nIDDlgItem,
UINT uValue,
BOOL bSigned
);
SetDlgItemInt功能
该SetDlgItemInt函数设置对话框中控件的文本指明整型值的字符串表示形式。
参数
hDlg
[in]句柄对话框,其中包含了控制。
nIDDlgItem
[in]指定要更改的控制。
uValue
[in]指定的整数值用于生成项文本。
bSigned
[in]是否uValue参数或不带符号指定。如果此参数为TRUE,uValue签署。如果此参数为true和uValue小于零,减号是摆在第一个字符串中的数字。如果此参数为FALSE,uValue是unsigned。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
要设置新的文本,此函数WM_SETTEXT消息发送到指定的控制。
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低操作系统Windows 95,Windows NT 3.1
UnicodeImplemented为Unicode版本。
参见
对话框概述,GetDlgItemInt,SetDlgItemText,WM_SETTEXT
==英文原文==SetDlgItemInt Function
The SetDlgItemInt function sets the text of a control in a dialog box to the string representation of a specified integer value.
Syntax
BOOL SetDlgItemInt( HWND hDlg,
int nIDDlgItem,
UINT uValue,
BOOL bSigned
);
Parameters
hDlg
[in] Handle to the dialog box that contains the control.
nIDDlgItem
[in] Specifies the control to be changed.
uValue
[in] Specifies the integer value used to generate the item text.
bSigned
[in] Specifies whether the uValue parameter is signed or unsigned. If this parameter is TRUE, uValue is signed. If this parameter is TRUE and uValue is less than zero, a minus sign is placed before the first digit in the string. If this parameter is FALSE, uValue is unsigned.
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
To set the new text, this function sends a WM_SETTEXT message to the specified control.
Function Information
Minimum DLL Versionuser32.dll
HeaderDeclared in Winuser.h, include Windows.h
Import libraryUser32.lib
Minimum operating systemsWindows 95, Windows NT 3.1
UnicodeImplemented as Unicode version.
See Also
Dialog Boxes Overview , GetDlgItemInt , SetDlgItemText , WM_SETTEXT
==原始网址==http://msdn.microsoft.com/en-us/library/ms645518(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 13:16:19