CREATE_PARAMS



Warning!

This version of documentation describes older release of the framework. Please consider upgrading to the latest release.

Describes system window parameters used at its creation.

struct CREATE_PARAMS // Creation parameters
{
    // Style
    bool HasBorder;			// false
    bool HasCaption;			// true
    bool IsChild;			// false
    bool IsClipChildren;		// false
    bool IsEnabled;			// true
    bool HasDialogFrame;		// false
    bool HasHorizontalScroll;		// false
    bool HasVerticalScroll;		// false
    bool IsMaximized;			// false
    bool IsMinimized;			// false
    bool HasMaximizeBox;		// true
    bool HasMinimizeBox;		// true
    bool HasSizeBox;			// true
    bool HasSystemMenu;			// true
    bool IsPopup;			// false
    bool IsTabStop;			// false
    bool IsVisible;			// false
    // StyleEx
    bool IsAcceptFiles;			// false
    bool IsApplicationWindow;		// false
    bool HasClientEdge;			// true
    bool HasContextHelp;		// false
    bool HasDialogModalFrame;		// false
    bool IsMDIChild;			// false
    bool HasStaticEdge;			// false
    bool IsToolWindow;			// false
    bool IsTopMost;			// false
    bool HasWindowEdge;			// true
    // Other
    String Caption;			// "Window"
    Point Position;			// 0x80000000, 0x80000000
    Point Size;				// 1420, 720
    WINDOW_STATE State;			// wsNormal
    WINDOW_POSITION WindowPosition;	// wpCustom

    CREATE_PARAMS(); // Create with default values specified in comments above
    CREATE_PARAMS( // Create with specified values
        const bool has_border,
        const bool has_caption,
        const bool is_child,
        const bool is_clip_children,
        const bool is_enabled,
        const bool has_dialog_frame,
        const bool has_horizontal_scroll,
        const bool has_vertical_scroll,
        const bool is_maximized,
        const bool is_minimized,
        const bool has_maximize_box,
        const bool has_minimize_box,
        const bool has_size_box,
        const bool has_system_menu,
        const bool is_popup,
        const bool is_tab_stop,
        const bool is_visible,
        const bool is_accept_files,
        const bool is_application_window,
        const bool has_client_edge,
        const bool has_context_help,
        const bool has_dialog_modal_frame,
        const bool is_mdi_child,
        const bool has_static_edge,
        const bool is_tool_window,
        const bool is_top_most,
        const bool has_window_edge,
        const String &caption,
        const Point &position,
        const Point &size,
        const WINDOW_STATE state,
        const WINDOW_POSITION window_position
    );
    CREATE_PARAMS(const CREATE_PARAMS &other) = default;
    CREATE_PARAMS(CREATE_PARAMS &&other) = default;

    bool operator==(const CREATE_PARAMS &other) const; // Check if it is equal with other structure
    bool operator!=(const CREATE_PARAMS &other) const; // Check if it is not equal with other structure
    CREATE_PARAMS &operator=(const CREATE_PARAMS &other) = default;
    CREATE_PARAMS &operator=(CREATE_PARAMS &&other) = default;
};
Namespace: nitisa
Include: Nitisa/Core/Types.h