bitflags WINSTYLEBITFLAGS : uint
{
WS_VISIBLE = 1,
WS_CHILD = 2,
...
}

bool CreateWindow(WINSTYLEBITFLAGS styles);

static assert(typeid(WS_VISIBLE) == typeid(WINSTYLEBITFLAGS));
static assert(typeid(WS_CHILD) == typeid(WINSTYLEBITFLAGS));
static assert(typeid(WS_VISIBLE | WS_CHILD) == typeid(WINSTYLEBITFLAGS));

How do you consider about this?

Reply via email to