setDialogStyleEx

Syntax

int setDialogStyleEx(int flags)

Arguments

flags
An integer of bitwise flags enabling different extended window styles

Return

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

Description

Sets (or enables) a particular extended style on a dialog. For example, you can make a window respond to drag & drop files using WS_EX_ACCEPTFILES. The [extended window style flags are defined at MSDN]. You can clear these settings later using (clearDialogStyleEx)?.

Example

// Make the dialog accept files that are dropped onto it via drag & drop
setDialogStyleEx(WS_EX_ACCEPTFILES);

See Also

setDialogStyle, (clearDialogStyle)?, (clearDialogStyleEx)?

Comments

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