2890|1

80

帖子

0

TA的资源

一粒金砂(初级)

楼主
 

minigui 中的GetDlgItemInt函数的参数 [复制链接]

请问一下这个函数的参数是什么,返回值是什么?
我用的是minigui1.6版
谢谢。

最新回复

The GetDlgItemInt function translates the text of a specified control in a dialog box into an integer value. Syntax UINT GetDlgItemInt(          HWND hDlg,     int nIDDlgItem,     BOOL *lpTranslated,     BOOL bSigned ); Parameters hDlg [in] Handle to the dialog box that contains the control of interest. nIDDlgItem [in] Specifies the identifier of the control whose text is to be translated. lpTranslated [out] Pointer to a variable that receives a success or failure value (TRUE indicates success, FALSE indicates failure). If this parameter is NULL, the function returns no information about success or failure. bSigned [in] Specifies whether the function should examine the text for a minus sign at the beginning and return a signed integer value if it finds one (TRUE specifies this should be done, FALSE that it should not). Return Value If the function succeeds, the variable pointed to by lpTranslated is set to TRUE, and the return value is the translated value of the control text. If the function fails, the variable pointed to by lpTranslated is set to FALSE, and the return value is zero. Note that, because zero is a possible translated value, a return value of zero does not by itself indicate failure. If lpTranslated is NULL, the function returns no information about success or failure. Note that, if the bSigned parameter is TRUE and there is a minus sign (–) at the beginning of the text, GetDlgItemInt translates the text into a signed integer value. Otherwise, the function creates an unsigned integer value. To obtain the proper value in this case, cast the return value to an int type. 在MSDN中,可以查到.  详情 回复 发表于 2009-7-21 16:42
点赞 关注

回复
举报

85

帖子

0

TA的资源

一粒金砂(初级)

沙发
 
The GetDlgItemInt function translates the text of a specified control in a dialog box into an integer value.

Syntax

UINT GetDlgItemInt(          HWND hDlg,
    int nIDDlgItem,
    BOOL *lpTranslated,
    BOOL bSigned
);
Parameters

hDlg
[in] Handle to the dialog box that contains the control of interest.
nIDDlgItem
[in] Specifies the identifier of the control whose text is to be translated.
lpTranslated
[out] Pointer to a variable that receives a success or failure value (TRUE indicates success, FALSE indicates failure).
If this parameter is NULL, the function returns no information about success or failure.

bSigned
[in] Specifies whether the function should examine the text for a minus sign at the beginning and return a signed integer value if it finds one (TRUE specifies this should be done, FALSE that it should not).
Return Value

If the function succeeds, the variable pointed to by lpTranslated is set to TRUE, and the return value is the translated value of the control text.

If the function fails, the variable pointed to by lpTranslated is set to FALSE, and the return value is zero. Note that, because zero is a possible translated value, a return value of zero does not by itself indicate failure.

If lpTranslated is NULL, the function returns no information about success or failure.

Note that, if the bSigned parameter is TRUE and there is a minus sign (–) at the beginning of the text, GetDlgItemInt translates the text into a signed integer value. Otherwise, the function creates an unsigned integer value. To obtain the proper value in this case, cast the return value to an int type.




在MSDN中,可以查到.
 
 

回复
您需要登录后才可以回帖 登录 | 注册

随便看看
查找数据手册?

EEWorld Datasheet 技术支持

相关文章 更多>>
关闭
站长推荐上一条 1/7 下一条

 
EEWorld订阅号

 
EEWorld服务号

 
汽车开发圈

About Us 关于我们 客户服务 联系方式 器件索引 网站地图 最新更新 手机版

站点相关: 国产芯 安防电子 汽车电子 手机便携 工业控制 家用电子 医疗电子 测试测量 网络通信 物联网

北京市海淀区中关村大街18号B座15层1530室 电话:(010)82350740 邮编:100190

电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号 Copyright © 2005-2025 EEWORLD.com.cn, Inc. All rights reserved
快速回复 返回顶部 返回列表