Using CitectSCADA > Defining and Drawing Graphics Pages > Securing the window title bar

Securing the window title bar

You can now specify confirmation actions for standard title bar buttons (minimize, maximize, restore, and close) to override the standard behavior for graphic page windows by writing a Cicode function that defines the alternative action, and specifying that Cicode function using the appropriate OnEvent() function event code. The Cicode function needs to return a value.

If your Cicode function returns a zero value, then the Windows message will be passed on to the default message handler so that the window will continue to execute the default behavior.

If your Cicode function returns non-zero, then the Windows message will not be passed on to the default message handler.

In addition, when you call Cicode function Shutdown(), you can decide whether to bypass the confirmation function or not.

See Also