Older Newer
Wed, 06 Nov 2019 06:44:17 . . . . SyneRyder [Minor formatting for small screens]


Changes by last author:

Added:
= setDialogStyle =

== Syntax ==

int setDialogStyle(int flags)

== Arguments ==

:flags

::An integer of bitwise flags enabling different window styles

== Return ==

Returns the previous settings of the flags as an integer if the function succeeds. Returns zero if it failed.

== Description ==

Sets (or enables) a particular style on a dialog. For example, you can change the window border to a thin style using WS_BORDER, or to a thick resizeable border using WS_THICKFRAME. The [window style flags are defined at MSDN]. You can clear these settings later using (clearDialogStyle)?.

== Comments ==

Internally, SetDialogStyle is a wrapper around the [SetWindowLong Win32 API function] with GWL_STYLE as the second parameter.

== Example ==

<code>

// Change the border to a thin style

setDialogStyle(WS_BORDER);

</code>

== See Also ==

setDialogStyleEx, (clearDialogStyle)?, (clearDialogStyleEx)?