一个API参数的问题 (0分)

A

awfigsk

Unregistered / Unconfirmed
GUEST, unregistred user!
我在一些API函数看到一些这样的表达式,<br>hWnd:THandel;<br><br>hWnd:=CreateWindow('WindowsClassDemo','WindowDemo',<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [red] WS_BORDER or WS_CAPTION or WS_SYSMENU,[/red]<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Integer(CW_USERDEFAULT),<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Integer(CW_USERDEFAULT),<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Integer(CW_USERDEFAULT),<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Integer(CW_USERDEFAULT),<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0,0,Hinstance,nil);<br>我想请问红色这部分是什么意思?
 
窗体的风格啊<br>WS_SYSMENU 有系统菜单<br>WS_CAPTION 有标题栏<br>WS_BORDER &nbsp;有边框<br>
 
看看Form的属性BorderIcons和BorderStyle(这两个属性就包含红色部分的内容),<br>再看看TCustomForm的源码,就更清楚了。
 
干嘛它们中间不用and ?
 
这是一个位运算的标志,理解嘛?<br><br>学过二进制的人都知道的.
 
接受答案了.
 
顶部