int main() { SubClass().SetB(123.4).SetA(123).Print(); SubClass().SetA(123).SetB(123.4).Print(); SuperClass<>().SetA(123).Print(); using SuperClass_t = SuperClass<>; SuperClass_t().SetA(123).Print(); }
void Form::Create() { handle = CreateWindowW(Application::FormClassName, 0, WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, NULL, NULL, Application::GetHandle(), NULL); if (!handle) { throw "Failed to create window."; } Application::RegisterComponent(this); SubClass(); }