diff options
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 |
