各位高手,请问DWORD类型到底是什么类型?

shijiaxi7 2001-08-07 01:15:17
各位高手,我是刚学VC的。请问DWORD类型到底是什么类型?象窗体风格就有这种类型作参数,但它们具体是什么?请详细说明,谢谢!
...全文
5253 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
Belle 2001-08-07
  • 打赏
  • 举报
回复
全是MSDN的东东
DWORD A 32-bit unsigned integer or the address of a segment and its associated offset.

virtual BOOL Create( LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle ,const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
其中 dwStyles的值有:WS_BORDER WS_CHILD WS_CHILD WS_VSCROLL WS_VISIBLE
等等
azuo_lee 2001-08-07
  • 打赏
  • 举报
回复
Window Styles

WS_BORDER Creates a window that has a border.


WS_CAPTION Creates a window that has a title bar (implies the WS_BORDER style). Cannot be used with the WS_DLGFRAME style.


WS_CHILD Creates a child window. Cannot be used with the WS_POPUP style.


WS_CLIPCHILDREN Excludes the area occupied by child windows when you draw within the parent window. Used when you create the parent window.


WS_CLIPSIBLINGS Clips child windows relative to each other; that is, when a particular child window receives a paint message, the WS_CLIPSIBLINGS style clips all other overlapped child windows out of the region of the child window to be updated. (If WS_CLIPSIBLINGS is not given and child windows overlap, when you draw within the client area of a child window, it is possible to draw within the client area of a neighboring child window.) For use with the WS_CHILD style only.


WS_DISABLED Creates a window that is initially disabled.


WS_DLGFRAME Creates a window with a double border but no title.


WS_GROUP Specifies the first control of a group of controls in which the user can move from one control to the next with the arrow keys. All controls defined with the WS_GROUP style FALSE after the first control belong to the same group. The next control with the WS_GROUP style starts the next group (that is, one group ends where the next begins).


WS_HSCROLL Creates a window that has a horizontal scroll bar.


WS_MAXIMIZE Creates a window of maximum size.


WS_MAXIMIZEBOX Creates a window that has a Maximize button.


WS_MINIMIZE Creates a window that is initially minimized. For use with the WS_OVERLAPPED style only.


WS_MINIMIZEBOX Creates a window that has a Minimize button.


WS_OVERLAPPED Creates an overlapped window. An overlapped window usually has a caption and a border.


WS_OVERLAPPEDWINDOW Creates an overlapped window with the WS_OVERLAPPED, WS_CAPTION, WS_SYSMENU, WS_THICKFRAME, WS_MINIMIZEBOX, and WS_MAXIMIZEBOX styles.


WS_POPUP Creates a pop-up window. Cannot be used with the WS_CHILD style.


WS_POPUPWINDOW Creates a pop-up window with the WS_BORDER, WS_POPUP, and WS_SYSMENU styles. The WS_CAPTION style must be combined with the WS_POPUPWINDOW style to make the Control menu visible.


WS_SYSMENU Creates a window that has a Control-menu box in its title bar. Used only for windows with title bars.


WS_TABSTOP Specifies one of any number of controls through which the user can move by using the TAB key. The TAB key moves the user to the next control specified by the WS_TABSTOP style.


WS_THICKFRAME Creates a window with a thick frame that can be used to size the window.


WS_VISIBLE Creates a window that is initially visible.


WS_VSCROLL Creates a window that has a vertical scroll bar.
shijiaxi7 2001-08-07
  • 打赏
  • 举报
回复
我目前这台电脑没装msdn,所以才来求救的。请把关于窗体风格的参数贴过来吧。
lanfan 2001-08-07
  • 打赏
  • 举报
回复
4字节(双字)的整数,窗体风格里的参数是用来表示窗体风格的各种标志。具体见MSDN。
shijiaxi7 2001-08-07
  • 打赏
  • 举报
回复
不够具体,能以窗口风格为例详细列出?
china_c 2001-08-07
  • 打赏
  • 举报
回复
这是一个双字节长度的Byte型数据类型。即此类型的变量在内存中占用四个字节。
AlphaOne 2001-08-07
  • 打赏
  • 举报
回复
= unsigned int
Kevin_qing 2001-08-07
  • 打赏
  • 举报
回复
32位无符号整形量
相当于unsigned long/unsigned int
azuo_lee 2001-08-07
  • 打赏
  • 举报
回复
double word,32位整形量。

16,471

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC相关问题讨论
社区管理员
  • 基础类社区
  • Web++
  • encoderlee
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

        VC/MFC社区版块或许是CSDN最“古老”的版块了,记忆之中,与CSDN的年龄几乎差不多。随着时间的推移,MFC技术渐渐的偏离了开发主流,若干年之后的今天,当我们面对着微软的这个经典之笔,内心充满着敬意,那些曾经的记忆,可以说代表着二十年前曾经的辉煌……
        向经典致敬,或许是老一代程序员内心里面难以释怀的感受。互联网大行其道的今天,我们期待着MFC技术能够恢复其曾经的辉煌,或许这个期待会永远成为一种“梦想”,或许一切皆有可能……
        我们希望这个版块可以很好的适配Web时代,期待更好的互联网技术能够使得MFC技术框架得以重现活力,……

试试用AI创作助手写篇文章吧