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
73 lines
2.2 KiB
//----------------------------------------------------------------------------
|
|
// Laser Guard Ltd.
|
|
// Copyright © 2000-2002. All Rights Reserved.
|
|
// Version 1.0 01/01/2000
|
|
// Last modification: 08/10/2003
|
|
// PROJECT:
|
|
// SUBSYSTEM:
|
|
// FILE: ToolBarDlg.h
|
|
// AUTHOR: Sergey Chizhevskiy
|
|
// OVERVIEW
|
|
// ~~~~~~~~
|
|
// Header file of ToolBarDlg.h
|
|
//----------------------------------------------------------------------------
|
|
#if !defined(AFX_TOOLBARDLG_H__E45901C1_900D_11D4_A1FC_00508B9DC668__INCLUDED_)
|
|
#define AFX_TOOLBARDLG_H__E45901C1_900D_11D4_A1FC_00508B9DC668__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
// ToolBarDlg.h : header file
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CToolBarDlg dialog
|
|
class CToolBarDlg : public CDialog
|
|
{
|
|
// Construction
|
|
public:
|
|
BOOL EnableButton( INT nID, BOOL bEnable = TRUE );
|
|
void SetModeText( LPCTSTR pStr );
|
|
int GetHeight();
|
|
CToolBarDlg(CWnd* pParent = NULL); // standard constructor
|
|
// Dialog Data
|
|
//{{AFX_DATA(CToolBarDlg)
|
|
enum { IDD = IDD_TOOLBAR_DLG };
|
|
CStatic m_StaticMode;
|
|
//}}AFX_DATA
|
|
|
|
|
|
// Overrides
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(CToolBarDlg)
|
|
public:
|
|
virtual BOOL Create( UINT nIDTemplate, CWnd* pParentWnd, CMenu *pMenu );
|
|
virtual BOOL PreTranslateMessage(MSG* pMsg);
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
|
virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
protected:
|
|
|
|
// Generated message map functions
|
|
//{{AFX_MSG(CToolBarDlg)
|
|
afx_msg void OnDestroy();
|
|
afx_msg void OnSize(UINT nType, int cx, int cy);
|
|
afx_msg void OnMove(int x, int y);
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
private:
|
|
BOOL OnToolTipNotify( UINT id, NMHDR * pNMHDR, LRESULT * pResult );
|
|
void CreateButtons( CMenu *pMenu );
|
|
CToolBarCtrl m_ToolBarCtrl;
|
|
CSize m_Size;
|
|
TBBUTTON *m_pButton;
|
|
int m_nButtonCount;
|
|
};
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
|
|
|
#endif // !defined(AFX_TOOLBARDLG_H__E45901C1_900D_11D4_A1FC_00508B9DC668__INCLUDED_)
|