windows data type

來源:互聯網
上載者:User

Data Types

This topic lists the data types most commonly used in the Microsoft Foundation Class Library. Most of the data types are exactly the same as those in the Windows Software Development Kit (SDK), while others are unique to MFC.

Commonly used Windows SDK and MFC data types are as follows:

  • 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.
相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.