Old fashion design for PC-104
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
2.2 KiB

4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. //----------------------------------------------------------------------------
  2. // Laser Guard Ltd.
  3. // Copyright � 2000-2002. All Rights Reserved.
  4. // Version 1.0 01/01/2000
  5. // Last modification: 08/10/2003
  6. // PROJECT:
  7. // SUBSYSTEM:
  8. // FILE: ToolBarDlg.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of ToolBarDlg.h
  13. //----------------------------------------------------------------------------
  14. #if !defined(AFX_TOOLBARDLG_H__E45901C1_900D_11D4_A1FC_00508B9DC668__INCLUDED_)
  15. #define AFX_TOOLBARDLG_H__E45901C1_900D_11D4_A1FC_00508B9DC668__INCLUDED_
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif // _MSC_VER > 1000
  19. // ToolBarDlg.h : header file
  20. //
  21. /////////////////////////////////////////////////////////////////////////////
  22. // CToolBarDlg dialog
  23. class CToolBarDlg : public CDialog
  24. {
  25. // Construction
  26. public:
  27. BOOL EnableButton( INT nID, BOOL bEnable = TRUE );
  28. void SetModeText( LPCTSTR pStr );
  29. int GetHeight();
  30. CToolBarDlg(CWnd* pParent = NULL); // standard constructor
  31. // Dialog Data
  32. //{{AFX_DATA(CToolBarDlg)
  33. enum { IDD = IDD_TOOLBAR_DLG };
  34. CStatic m_StaticMode;
  35. //}}AFX_DATA
  36. // Overrides
  37. // ClassWizard generated virtual function overrides
  38. //{{AFX_VIRTUAL(CToolBarDlg)
  39. public:
  40. virtual BOOL Create( UINT nIDTemplate, CWnd* pParentWnd, CMenu *pMenu );
  41. virtual BOOL PreTranslateMessage(MSG* pMsg);
  42. protected:
  43. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  44. virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
  45. //}}AFX_VIRTUAL
  46. // Implementation
  47. protected:
  48. // Generated message map functions
  49. //{{AFX_MSG(CToolBarDlg)
  50. afx_msg void OnDestroy();
  51. afx_msg void OnSize(UINT nType, int cx, int cy);
  52. afx_msg void OnMove(int x, int y);
  53. //}}AFX_MSG
  54. DECLARE_MESSAGE_MAP()
  55. private:
  56. BOOL OnToolTipNotify( UINT id, NMHDR * pNMHDR, LRESULT * pResult );
  57. void CreateButtons( CMenu *pMenu );
  58. CToolBarCtrl m_ToolBarCtrl;
  59. CSize m_Size;
  60. TBBUTTON *m_pButton;
  61. int m_nButtonCount;
  62. };
  63. //{{AFX_INSERT_LOCATION}}
  64. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  65. #endif // !defined(AFX_TOOLBARDLG_H__E45901C1_900D_11D4_A1FC_00508B9DC668__INCLUDED_)