diff options
| author | Konstantin <const@const.me> | 2023-01-18 21:10:40 +0100 |
|---|---|---|
| committer | Konstantin <const@const.me> | 2023-01-18 21:10:40 +0100 |
| commit | 670f889b7e3af360fbd66ae34bc74e7e393edbfe (patch) | |
| tree | 268707bf77309527d2e9cac02b8adf93c01d4d30 /Examples/WhisperDesktop/ModelAdvancedDlg.h | |
| parent | 11c399b70c7ad5664b6060b39632e6b9fa815350 (diff) | |
GUI to force specific version of the compute shaders
Diffstat (limited to 'Examples/WhisperDesktop/ModelAdvancedDlg.h')
| -rw-r--r-- | Examples/WhisperDesktop/ModelAdvancedDlg.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/Examples/WhisperDesktop/ModelAdvancedDlg.h b/Examples/WhisperDesktop/ModelAdvancedDlg.h new file mode 100644 index 0000000..aebbda5 --- /dev/null +++ b/Examples/WhisperDesktop/ModelAdvancedDlg.h @@ -0,0 +1,35 @@ +#pragma once +#include "AppState.h" +#include "Utils/WTL/atlddx.h" +#include "Utils/miscUtils.h" + +class ModelAdvancedDlg : + public CDialogImpl<ModelAdvancedDlg> +{ + CComboBox cbWave, cbReshapedMatMul; + AppState& appState; + +public: + static constexpr UINT IDD = IDD_MODEL_ADV; + + ModelAdvancedDlg( AppState& app ) : appState( app ) { } + + BEGIN_MSG_MAP( ModelAdvancedDlg ) + MESSAGE_HANDLER( WM_INITDIALOG, onInitDialog ) + ON_BUTTON_CLICK( IDOK, onOk ) + ON_BUTTON_CLICK( IDCANCEL, onCancel ) + END_MSG_MAP() + + bool show( HWND owner ); + +private: + + LRESULT onInitDialog( UINT nMessage, WPARAM wParam, LPARAM lParam, BOOL& bHandled ); + + void onOk(); + + void onCancel() + { + EndDialog( IDCANCEL ); + } +};
\ No newline at end of file |
