procedure CreateParams(var Params: TCreateParams); override;
参数定义如下:

TCreateParams = record
Caption: PChar;
Style: DWORD;
ExStyle: DWORD;
X, Y: Integer;
Width, Height: Integer;
WndParent: HWnd;
Param: Pointer;
WindowClass: TWndClass;
WinClassName: array[0..63] of Char;
end;

其中Style的取值:
Window Styles

--------------------------------------------------------------------------------

The following styles can be specified wherever a window style is required. After
the control has been created, these styles cannot be modified, except as noted.

Constants

WS_BORDER
Creates a window that has a thin-line border.

WS_CAPTION
Creates a window that has a title bar (includes the WS_BORDER style).

WS_CHILD
Creates a child window. A window with this style cannot have a menu bar. This st
yle cannot be used with the WS_POPUP style.

WS_CHILDWINDOW
Same as the WS_CHILD style.

WS_CLIPCHILDREN
Excludes the area occupied by child windows when drawing occurs within the paren
t window. This style is used when creating the parent window.

WS_CLIPSIBLINGS
Clips child windows relative to each other; that is, when a particular child win
dow receives a WM_PAINT message, the WS_CLIPSIBLINGS style clips all other overl
apping child windows out of the region of the child window to be updated. If WS_
CLIPSIBLINGS is not specified and child windows overlap, it is possible, when dr
awing within the client area of a child window, to draw within the client area o
f a neighboring child window.

WS_DISABLED
Creates a window that is initially disabled. A disabled window cannot receive in
put from the user. To change this after a window has been created, use EnableWin
dow.

WS_DLGFRAME
Creates a window that has a border of a style typically used with dialog boxes.
A window with this style cannot have a title bar.

WS_GROUP
Specifies the first control of a group of controls. The group consists of this first control and all controls defined after it, up to the next control with the WS_GROUP style. The first control in each group usually has the WS_TABSTOP style so that the user can move from group to group. The user can subsequently change the keyboard focus from one control in the group to the next control in the group by using the direction keys.
You can turn this style on and off to change dialog box navigation. To change th
is style after a window has been created, use SetWindowLong.

WS_HSCROLL
Creates a window that has a horizontal scroll bar.

WS_ICONIC
Creates a window that is initially minimized. Same as the WS_MINIMIZE style.

WS_MAXIMIZE
Creates a window that is initially maximized.

WS_MAXIMIZEBOX
Creates a window that has a maximize button. Cannot be combined with the WS_EX_C
ONTEXTHELP style. The WS_SYSMENU style must also be specified.

WS_MINIMIZE
Creates a window that is initially minimized. Same as the WS_ICONIC style.

WS_MINIMIZEBOX
Creates a window that has a minimize button. Cannot be combined with the WS_EX_C
ONTEXTHELP style. The WS_SYSMENU style must also be specified.

WS_OVERLAPPED
Creates an overlapped window. An overlapped window has a title bar and a border.
Same as the WS_TILED style.

WS_OVERLAPPEDWINDOW
Creates an overlapped window with the WS_OVERLAPPED, WS_CAPTION, WS_SYSMENU, WS_
THICKFRAME, WS_MINIMIZEBOX, and WS_MAXIMIZEBOX styles. Same as the WS_TILEDWINDO
W style.

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

WS_POPUPWINDOW
Creates a pop-up window with WS_BORDER, WS_POPUP, and WS_SYSMENU styles. The WS_
CAPTION and WS_POPUPWINDOW styles must be combined to make the window menu visib
le.

WS_SIZEBOX
Creates a window that has a sizing border. Same as the WS_THICKFRAME style.

WS_SYSMENU
Creates a window that has a window menu on its title bar. The WS_CAPTION style m
ust also be specified.

WS_TABSTOP
Specifies a control that can receive the keyboard focus when the user presses th
e TAB key. Pressing the TAB key changes the keyboard focus to the next control w
ith the WS_TABSTOP style.
You can turn this style on and off to change dialog box navigation. To change th
is style after a window has been created, use SetWindowLong.

WS_THICKFRAME
Creates a window that has a sizing border. Same as the WS_SIZEBOX style.

WS_TILED
Creates an overlapped window. An overlapped window has a title bar and a border.
Same as the WS_OVERLAPPED style.

WS_TILEDWINDOW
Creates an overlapped window with the WS_OVERLAPPED, WS_CAPTION, WS_SYSMENU, WS_
THICKFRAME, WS_MINIMIZEBOX, and WS_MAXIMIZEBOX styles. Same as the WS_OVERLAPPED
WINDOW style.

WS_VISIBLE
Creates a window that is initially visible.
This style can be turned on and off by using ShowWindow or SetWindowPos.

WS_VSCROLL
Creates a window that has a vertical scroll bar.

转载于:https://www.cnblogs.com/spiritofcloud/p/3980379.html

关于CreateParams的参数相关推荐

  1. 在Dockerfile中设置G1垃圾回收器参数

    在Dockerfile中设置G1垃圾回收器参数 ENV JAVA_OPTS="\ -server \ -XX:SurvivorRatio=8 \ -XX:+DisableExplicitGC ...

  2. Java Calendar.add()方法的使用,参数含义。指定时间差。

    cal.add()方法中的参数含义: 第一个参数如果是1则代表的是对年份操作,2是对月份操作,3是对星期操作,5是对日期操作,11是对小时操作,12是对分钟操作,13是对秒操作,14是对毫秒操作. 第 ...

  3. java带参数的方法笔记_具有Java参数的方法的类声明

    类声明可以包含在Java中具有参数的方法.演示此过程的程序如下: 示例class Message { public void messagePrint(String msg) { System.out ...

  4. Gin 框架学习笔记(02)— 参数自动绑定到结构体

    参数绑定模型可以将请求体自动绑定到结构体中,目前支持绑定的请求类型有 JSON .XML .YAML 和标准表单 form数据 foo=bar&boo=baz 等.换句话说,只要定义好结构体, ...

  5. VS Code 配置调试参数、launch.json 配置文件属性、task.json 变量替换、自动保存并格式化、空格和制表符、函数调用关系、文件搜索和全局搜索、

    1. 生成配置参数 对于大多数的调试都需要在当前项目目录下创建一个 lanch.json 文件,位置是在当前项目目录下生成一个 .vscode 的隐藏文件夹,在里面放置一些配置内容,比如:settin ...

  6. VS Code 安装插件、自定义模板、自定义配置参数、自定义主题、配置参数说明、常用的扩展插件

    1. 下载和官网教程 下载地址:https://code.visualstudio.com/ 官方教程:https://code.visualstudio.com/docs 2. 安装插件 安装扩展插 ...

  7. 浅显易懂 Makefile 入门 (08)— 默认 shell (/bin/sh)、命令回显、make参数(-n 只显示命令但不执行,-s 禁止所有回显)、单行命令、多行命令、并发执行

    1. shell 相关 1.1 默认 shell Makefile 所使用的命令是由 shell 命令行组成,他们是一条一条执行的. 多个命令之间要使用分号隔开,Makefile 中的任何命令都要以 ...

  8. Go 学习笔记(65)— Go 中函数参数是传值还是传引用

    Go 语言中,函数参数传递采用是值传递的方式.所谓"值传递",就是将实际参数在内存中的表示逐位拷贝到形式参数中.对于像整型.数组.结构体这类类型,它们的内存表示就是它们自身的数据内 ...

  9. Go 学习笔记(61)— Go 高阶函数、函数作为一等公民(函数作为输入参数、返回值、变量)的写法

    函数在 Go 语言中属于"一等公民(First-Class Citizen)"拥有"一等公民"待遇的语法元素可以如下使用 可以存储在变量中: 可以作为参数传递给 ...

最新文章

  1. 告诉你KVC的一切-b
  2. 文件内容批量修改工具
  3. .NET Core微服务之路:基于Ocelot的API网关实现--http/https协议篇
  4. day2 字典常用的方法
  5. 基于Python+Django的企业人事管理系统
  6. (Origin教程)在图片和表格中插入Latex公式
  7. springboot整合rabbitmq之延时队列
  8. libopus 实现pcm 编码到opus
  9. 计算机word加边框,Word2010怎样为段落加上边框
  10. matlab 折射率椭球,一、折射率椭球.ppt
  11. Centos7系统安全漏洞及修复方案
  12. Paypal国际版网站集成
  13. 循环语句(while,for,do...while)
  14. 音频-基于Core Audio技术采集音频(版本2)
  15. 云服务器的购买及搭建
  16. CUDA学习之CUDA执行模型--part3
  17. veins笔记——模块
  18. 回顾知识点:操作系统篇(二)
  19. NeurIPS 2019 | 香侬科技开源Glyce2.0,中文字形增强BERT表征能力
  20. 【NODE.JS】Buffer

热门文章

  1. 英伟达点开后显示无法连接服务器,解决win10提示“无法连接到 NVIDIA 检查您的互联网连接”的教程...
  2. Win32编程基础知识(包括对程序的分析)
  3. php web程序漏洞,各种web程序漏洞
  4. Scrapy爬取P2P新闻入门教程
  5. [学习笔记-扫盲]KL15,KL30
  6. VCC、VDD、VSS、GND区别
  7. Automated Phrase
  8. 如何在cv2窗口图像上写字_Python for opencv 之 显示图像及在图像上书写文字
  9. 常用离散、连续分布及期望、方差总结
  10. 知识图谱--实体关系抽取,依存句法分析