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_CSHCOMMON_H__B9FD78FA_DE33_11D3_A53F_00A0C949ADAC__INCLUDED_)
26 #define AFX_CSHCOMMON_H__B9FD78FA_DE33_11D3_A53F_00A0C949ADAC__INCLUDED_
30 #endif // _MSC_VER > 1000
31 // CSHCommon.h : header file
34 /////////////////////////////////////////////////////////////////////////////
49 // What CSHFile() will probably return something starting with this path
50 static void SetCSHFilePath(LPCTSTR pszCSHFilePath) { m_strCSHFilePath=pszCSHFilePath; }
51 static const CString GetCSHFilePath() { return m_strCSHFilePath; }
53 // Used by dialogs handling NM_RCLICK notifications to display a context menu to avoid getting two in a row.
54 void SuppressNextContextMenuMessage() { m_bSupressContextMenu=true; }
58 virtual ~CCSHCommon();
61 bool OnContextMenu (CWnd *pDialog, CPoint pt, UINT idHelp);
62 enum {ID_WHATS_THIS=42};
64 bool m_bSupressContextMenu;
66 static CString m_strCSHFilePath;
68 static void DisplayHelp (HWND hCtrl, UINT ids, HINSTANCE hInst);
70 static CWnd *WndFromPoint(CWnd *pDialog,CWnd* pWnd,CPoint pt);
73 bool FilterMessage(UINT &message, WPARAM &wParam,LPARAM &lParam,LRESULT *&pResult);
76 /////////////////////////////////////////////////////////////////////////////
78 //{{AFX_INSERT_LOCATION}}
79 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
81 #endif // !defined(AFX_CSHCOMMON_H__B9FD78FA_DE33_11D3_A53F_00A0C949ADAC__INCLUDED_)