Scope
MovementPage.cpp
1 #include "stdafx.h"
2 #include "MovementPage.h"
3 #include "MovementSettingsSheet.h"
4 
5 namespace scope {
6  namespace gui {
7 
8 BOOL CMovementPage::OnInitDialog(CWindow wndFocus, LPARAM lInitParam) {
9  // Replace placeholder with scan settings property sheet
10  HWND hWndPlaceHolder = GetDlgItem(IDC_MOVEMENTSETTINGS_HOLDER);
11  ::ShowWindow(hWndPlaceHolder, FALSE);
12  CRect rc;
13  ::GetWindowRect(hWndPlaceHolder, &rc);
14  ScreenToClient(&rc);
15  settings_sheet.Create(m_hWnd, 0, rc);
16 
17  SetMsgHandled(false);
18  return 0;
19 }
20 
21 }
22 }
BOOL OnInitDialog(CWindow wndFocus, LPARAM lInitParam)
Replace the placeholder with the CMovementSettingsSheet.
Definition: MovementPage.cpp:8
HWND Create(const HWND hWndParent, const int nStartPage, const CRect &rc)
Adds all the settingspages.
This is the include file for standard system include files, or project specific include files that ar...
CMovementSettingsSheet settings_sheet
the setting sheets that contains the real stuff
Definition: MovementPage.h:15