Parameters of createparams

Source: Internet
Author: User

Procedure createparams (VAR Params: tcreateparams); override;
Parameters are defined as follows:

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;

The value of style is as follows:
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, cannot as noted.

Constants

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

Ws_caption
Creates a window that has a title bar (partition des 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 participant child win
Dow ipves 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.

Parameters of createparams

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.