@@ -416,11 +416,12 @@ void ShowMessageDialog(
416416 return ;
417417 }
418418
419- winrt::NanaBox::MessagePage Window =
420- winrt::make<winrt::NanaBox::implementation::MessagePage>(
421- WindowHandle,
422- InstructionText,
423- ContentText);
419+ using InstanceType = winrt::NanaBox::MessagePage;
420+ using ImplementationType = winrt::NanaBox::implementation::MessagePage;
421+ InstanceType Window = winrt::make<ImplementationType>(
422+ WindowHandle,
423+ InstructionText,
424+ ContentText);
424425 ::ShowXamlDialog (
425426 WindowHandle,
426427 480 ,
@@ -653,9 +654,9 @@ winrt::handle ShowAboutDialog(
653654 return ;
654655 }
655656
656- winrt::NanaBox::AboutPage Window =
657- winrt::make<winrt:: NanaBox::implementation::AboutPage>(
658- WindowHandle);
657+ using InstanceType = winrt::NanaBox::AboutPage;
658+ using ImplementationType = winrt::NanaBox::implementation::AboutPage;
659+ InstanceType Window = winrt::make<ImplementationType>( WindowHandle);
659660 ::ShowXamlDialog (
660661 WindowHandle,
661662 480 ,
@@ -680,9 +681,11 @@ winrt::handle ShowNewVirtualHardDiskDialog(
680681 return ;
681682 }
682683
683- winrt::NanaBox::NewVirtualHardDiskPage Window =
684- winrt::make<winrt::NanaBox::implementation::NewVirtualHardDiskPage>(
685- WindowHandle);
684+ using InstanceType =
685+ winrt::NanaBox::NewVirtualHardDiskPage;
686+ using ImplementationType =
687+ winrt::NanaBox::implementation::NewVirtualHardDiskPage;
688+ InstanceType Window = winrt::make<ImplementationType>(WindowHandle);
686689 ::ShowXamlDialog (
687690 WindowHandle,
688691 480 ,
@@ -757,9 +760,10 @@ winrt::handle ShowCompactVirtualHardDiskDialog(
757760
758761 try
759762 {
760- HWND WaitingHandle = ::ShowOperationWaitingWindow (ParentWindowHandle);
763+ HWND WaitingHandle = ::ShowOperationWaitingWindow (
764+ ParentWindowHandle);
761765
762- DWORD Error = SimpleCompactVirtualDisk (FilePath.c_str ());
766+ DWORD Error = :: SimpleCompactVirtualDisk (FilePath.c_str ());
763767
764768 if (ERROR_SUCCESS == Error)
765769 {
@@ -804,9 +808,11 @@ winrt::handle ShowResizeVirtualHardDiskDialog(
804808 return ;
805809 }
806810
807- winrt::NanaBox::ResizeVirtualHardDiskPage Window =
808- winrt::make<winrt::NanaBox::implementation::ResizeVirtualHardDiskPage>(
809- WindowHandle);
811+ using InstanceType =
812+ winrt::NanaBox::ResizeVirtualHardDiskPage;
813+ using ImplementationType =
814+ winrt::NanaBox::implementation::ResizeVirtualHardDiskPage;
815+ InstanceType Window = winrt::make<ImplementationType>(WindowHandle);
810816 ::ShowXamlDialog (
811817 WindowHandle,
812818 480 ,
0 commit comments