MFC Data Type

Source: Internet
Author: User

The following data types are used together with Win32 programs.

Bool: Boolean value; Value: true or false

BSTR: 32-bit character pointer

Byte: an 8-bit integer with no plus or minus signs

Colorref: 32-bit value, representing a color value

DWORD: 32-bit integer without plus or minus signs

Long: 32-bit integer with positive and negative numbers

Lparam: 32-bit integer, used as a parameter of the window function or callback function.

Lpcstr: 32-bit pointer, pointing to a constant string

Lpstr: 32-bit pointer, pointing to a string

Lpctstr: 32-bit pointer, pointing to a constant string, which can be transplanted to Unicode and DBCS

Lptstr: 32-bit pointer, pointing to a string, which can be transplanted to Unicode and DBCS

Lpvoid: 32-bit pointer, pointing to an unspecified type of data

Lpresult: 32-bit value, which is returned by the window function or callback function.

Uint: In Win16, It is a 16-bit integer without plus or minus signs. in Win32, It is a 32-bit integer without plus or minus signs,

Wndproc: 32-bit pointer, pointing to a window function

Word: A 16-bit integer without a plus or minus sign

Wparam: a parameter of the window function or callback function. It is 16-bit in Win16 and 32-bit in Win32.

The following are the unique data types of MFC:

Position: A value that represents the position of elements in a collection object (such as an array or a linked list). It is often used in MFC collection classes (that is, data processing classes, such as carray)

Lpcrect: 32-bit pointer pointing to an unchanged rect Structure

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.