1 #pragma once 2 #include "studiox_includes.h" 3 #include "afxcmn.h" 4 5 #define MIN_GRID_SNAP_SPACE 2 6 #define MAX_GRID_SNAP_SPACE 160 7 8 class grid_setting_dlg : public express_dialog 9 { 10 DECLARE_DYNAMIC(grid_setting_dlg) 11 public: 12 grid_setting_dlg(CWnd* pParent); 13 virtual ~grid_setting_dlg(); 14 15 // Dialog Data 16 enum { IDD = IDD_GRID_SETTINGS }; 17 virtual BOOL OnInitDialog(); 18 19 protected: 20 afx_msg void DoDataExchange(CDataExchange* pDX); 21 virtual BOOL PreTranslateMessage(MSG* pMsg); 22 afx_msg LRESULT OnTestMessage(WPARAM wParam, LPARAM lParam); 23 void OnEditGridSpacing(); 24 void OnEditSnapSpacing(); 25 26 DECLARE_MESSAGE_MAP() 27 28 private: 29 int mGridSpacingVal; 30 int mSnapSpacingVal; 31 32 public: 33 CSpinButtonCtrl mSpinGridSpacing; 34 CSpinButtonCtrl mSpinSnapSpacing; 35 }; 36 37