Scope
MovementSettingsSheet.h
1 #pragma once
2 
3 #include "XYZControlPage.h"
4 #include "FPUControlPage.h"
5 
6 namespace scope {
7  namespace gui {
8 
12  : public CPropertySheetImpl<CMovementSettingsSheet> {
13 
14 protected:
17 
19  std::array<std::unique_ptr<CFPUControlPage>, SCOPE_NAREAS> fpupages;
20 
21 public:
24 
25  BEGIN_MSG_MAP(CMovementSettingsSheet)
26  NOTIFY_CODE_HANDLER(TCN_SELCHANGE, OnSelChange)
27  CHAIN_MSG_MAP(CPropertySheetImpl<CMovementSettingsSheet>)
28  REFLECT_NOTIFICATIONS()
29  END_MSG_MAP()
30 
36  HWND Create(const HWND hWndParent, const int nStartPage, const CRect & rc);
37 
39  static int CALLBACK PropSheetCallback(HWND hWnd, UINT uMsg, LPARAM lParam);
40 
41  LRESULT OnSelChange(WPARAM wParam, LPNMHDR pnmHdr, BOOL & bHandled);
43 };
44 
45 }}
Settings sheet that has settings pages for all movement/stages related stuff, resided inside the CMov...
Property page for XYZ stage settings.
HWND Create(const HWND hWndParent, const int nStartPage, const CRect &rc)
Adds all the settingspages.
CMovementSettingsSheet(void)
Creates the CFPUControlPages (they do not have a default constructor, so we need pointers and constru...
static int CALLBACK PropSheetCallback(HWND hWnd, UINT uMsg, LPARAM lParam)
We need this for whatever (see some WTL dialog tutorial)...
CXYZControlPage xyzcontrolpage
a settings page for XYZ stage
std::array< std::unique_ptr< CFPUControlPage >, SCOPE_NAREAS > fpupages
settings pages for each FPU