Scope
XYZControlPage.cpp
1 #include "stdafx.h"
2 #include "XYZControlPage.h"
3 
4 namespace scope {
5  namespace gui {
6 
8  : xpos_edit(&scope_controller.GuiParameters.stage.xpos, true)
9  , ypos_edit(&scope_controller.GuiParameters.stage.ypos, true)
10  , zpos_edit(&scope_controller.GuiParameters.stage.zpos, true)
11  , setzero_button(&scope_controller.StageZeroButton) {
12 }
13 
14 BOOL CXYZControlPage::OnInitDialog(CWindow wndFocus, LPARAM lInitParam) {
15  xpos_edit.AttachToDlgItem(GetDlgItem(IDC_POSX_EDIT));
16  ypos_edit.AttachToDlgItem(GetDlgItem(IDC_POSY_EDIT));
17  zpos_edit.AttachToDlgItem(GetDlgItem(IDC_POSZ_EDIT));
18  setzero_button.AttachToDlgItem(GetDlgItem(IDC_SETZERO_BUTTON));
19 
20  SetMsgHandled(false);
21  return 0;
22 }
23 
24 }
25 }
CScopeEditCtrl< double > zpos_edit
edit for the stage's z position
CXYZControlPage(void)
create the edit objects (e.g.
bool AttachToDlgItem(HWND hWnd)
Attach the control to a dialog item.
Definition: ScopeEditCtrl.h:68
BOOL OnInitDialog(CWindow wndFocus, LPARAM lInitParam)
attach the dialog controls to the edit objects
This is the include file for standard system include files, or project specific include files that ar...
CScopeButtonCtrl setzero_button
button to set current position as zero
CScopeEditCtrl< double > xpos_edit
edit for the stage's x position
CScopeEditCtrl< double > ypos_edit
edit for the stage's y position
bool AttachToDlgItem(HWND hWnd)
Attach the control to a dialog item.