| 70 | } |
| 71 | |
| 72 | void MainWindowControl::EnhancedSessionButtonClick( |
| 73 | winrt::IInspectable const& sender, |
| 74 | winrt::RoutedEventArgs const& e) |
| 75 | { |
| 76 | UNREFERENCED_PARAMETER(e); |
| 77 | |
| 78 | ::PostMessageW( |
| 79 | this->m_WindowHandle, |
| 80 | WM_COMMAND, |
| 81 | (winrt::unbox_value<bool>( |
| 82 | sender.as<winrt::AppBarToggleButton>().IsChecked()) |
| 83 | ? MAKEWPARAM( |
| 84 | NanaBox::MainWindowCommands::EnterEnhancedSession, |
| 85 | BN_CLICKED) |
| 86 | : MAKEWPARAM( |
| 87 | NanaBox::MainWindowCommands::EnterBasicSession, |
| 88 | BN_CLICKED)), |
| 89 | 0); |
| 90 | } |
| 91 | |
| 92 | void MainWindowControl::FullScreenButtonClick( |
| 93 | winrt::IInspectable const& sender, |
nothing calls this directly
no outgoing calls
no test coverage detected