Skip to content

Allow seting WS_CAPTION on window creation #296

@eugenesvk

Description

@eugenesvk

Currently not all window flags are exposed in the WindowFlags struct, so I thought I'd manually remove the title with

let mut myflags = wf::MAIN_WINDOW;
myflags &= unsafe{nwg::WindowFlags::from_bits_unchecked(!WS_CAPTION)};

but the title is created anyway, I guess since windowbuilder always accepts some string as its title, and can't accept None?

(if I use set_style after window builder creates a window, it seems to work and the title is removed)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions