[archived content]

Control.createParams method

protected void createParams(inout CreateParams cp)

By overriding this method, allows control creation parameters to be modified for when the handle is created.

Be sure to call super.createParams or all the fields will need to be populated.

For example,

class MyForm: Form
        protected override void createParams(inout CreateParams cp)
                super.createParams(cp); // Fill cp with default creation parameters.

                cp.exStyle |= WS_EX_TOOLWINDOW; // Apply my updates.

See also: CreateParams

Page last modified on August 17, 2007, at 07:58 AM