数据类型

本文详细介绍了 Windows 中常用的数据类型,包括 BOOL、BSTR、BYTE、COLORREF、DWORD 等,并解释了它们在不同 Windows 版本中的表现形式。此外,还介绍了 MFC 类库中的特定数据类型。
BOOL   A Boolean value.


BSTR   A 32-bit character pointer.


BYTE   An 8-bit integer that is not signed.


COLORREF   A 32-bit value used as a color value.


DWORD   A 32-bit unsigned integer or the address of a segment and its associated offset.


LONG   A 32-bit signed integer.


LPARAM   A 32-bit value passed as a parameter to a window procedure or callback function.


LPCSTR   A 32-bit pointer to a constant character string.


LPSTR   A 32-bit pointer to a character string.


LPCTSTR   A 32-bit pointer to a constant character string that is portable for Unicode and DBCS.


LPTSTR   A 32-bit pointer to a character string that is portable for Unicode and DBCS.


LPVOID   A 32-bit pointer to an unspecified type.


LRESULT   A 32-bit value returned from a window procedure or callback function.


UINT   A 16-bit unsigned integer on Windows versions 3.0 and 3.1; a 32-bit unsigned integer on Win32.


WNDPROC   A 32-bit pointer to a window procedure.


WORD   A 16-bit unsigned integer.


WPARAM   A value passed as a parameter to a window procedure or callback function: 16 bits on Windows versions 3.0 and 3.1; 32 bits on Win32. 
Data types unique to the Microsoft Foundation Class Library include the following: 

POSITION   A value used to denote the position of an element in a collection; used by MFC collection classes.


LPCRECT   A 32-bit pointer to a constant (nonmodifiable) RECT structure. 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值