Beispiel #1
0
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();
    
}
Beispiel #2
0
		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();
		}