App.xaml.h 767 B

123456789101112131415161718192021222324252627282930313233
  1. //
  2. // App.xaml.h
  3. // App 类的声明。
  4. //
  5. #pragma once
  6. #include "App.g.h"
  7. namespace SDLPal
  8. {
  9. /// <summary>
  10. /// 提供特定于应用程序的行为,以补充默认的应用程序类。
  11. /// </summary>
  12. ref class App sealed
  13. {
  14. protected:
  15. virtual void OnLaunched(Windows::ApplicationModel::Activation::LaunchActivatedEventArgs^ e) override;
  16. internal:
  17. App();
  18. void SetMainPage(Windows::UI::Xaml::Controls::Page^ page) { _main_page = page; }
  19. private:
  20. Windows::UI::Xaml::Controls::Page^ _main_page;
  21. void OnSuspending(Platform::Object^ sender, Windows::ApplicationModel::SuspendingEventArgs^ e);
  22. void OnNavigationFailed(Platform::Object ^sender, Windows::UI::Xaml::Navigation::NavigationFailedEventArgs ^e);
  23. };
  24. }
  25. extern HANDLE g_eventHandle;