1 //####COPYRIGHTBEGIN####
3 // ----------------------------------------------------------------------------
4 // Copyright (C) 1998, 1999, 2000 Red Hat, Inc.
6 // This program is part of the eCos host tools.
8 // This program is free software; you can redistribute it and/or modify it
9 // under the terms of the GNU General Public License as published by the Free
10 // Software Foundation; either version 2 of the License, or (at your option)
13 // This program is distributed in the hope that it will be useful, but WITHOUT
14 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
18 // You should have received a copy of the GNU General Public License along with
19 // this program; if not, write to the Free Software Foundation, Inc.,
20 // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 // ----------------------------------------------------------------------------
24 //####COPYRIGHTEND####
25 #if !defined(AFX_CSHPROPERTYPAGE_H__C73B503D_95C1_11D3_A535_00A0C949ADAC__INCLUDED_)
26 #define AFX_CSHPROPERTYPAGE_H__C73B503D_95C1_11D3_A535_00A0C949ADAC__INCLUDED_
30 #endif // _MSC_VER > 1000
31 // CSHPropertyPage.h : header file
34 /////////////////////////////////////////////////////////////////////////////
35 // CCSHPropertyPage dialog
36 #include "CSHCommon.h"
38 class CCSHPropertyPage : public CPropertyPage, public CCSHCommon
40 DECLARE_DYNCREATE(CCSHPropertyPage)
44 CCSHPropertyPage():CPropertyPage(){};
45 CCSHPropertyPage(UINT nIDTemplate, UINT nIDCaption = 0 ):CPropertyPage(nIDTemplate, nIDCaption){}
46 CCSHPropertyPage( LPCTSTR lpszTemplateName, UINT nIDCaption = 0 ):CPropertyPage(lpszTemplateName, nIDCaption){}
48 virtual ~CCSHPropertyPage();
50 // Used by dialogs handling NM_RCLICK notifications to display a context menu to avoid getting two in a row.
51 void SuppressNextContextMenuMessage() { m_bSupressContextMenu=true; }
54 //{{AFX_DATA(CCSHPropertyPage)
55 // NOTE - ClassWizard will add data members here.
56 // DO NOT EDIT what you see in these blocks of generated code !
61 // ClassWizard generate virtual function overrides
62 //{{AFX_VIRTUAL(CCSHPropertyPage)
64 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
69 bool m_bSupressContextMenu;
72 virtual UINT HelpID (DWORD dwCtrlID) const;
73 UINT HelpID(HWND hWnd) const { return HelpID(::GetDlgCtrlID(hWnd)); }
74 virtual CString CSHFile() const;
76 virtual HINSTANCE GetInstanceHandle();
77 void OnContextMenu(CWnd* pWnd, CPoint point);
78 BOOL OnHelpInfo(HELPINFO* pHelpInfo);
79 BOOL OnWndMsg(UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pResult);
81 // Generated message map functions
82 //{{AFX_MSG(CCSHPropertyPage)
83 afx_msg void OnWhatsThis();
84 afx_msg void OnHelp();
90 //{{AFX_INSERT_LOCATION}}
91 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
93 #endif // !defined(AFX_CSHPROPERTYPAGE_H__C73B503D_95C1_11D3_A535_00A0C949ADAC__INCLUDED_)