OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [host/] [tools/] [Utils/] [win32/] [CSHCommon.h] - Blame information for rev 790

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
// ####ECOSHOSTGPLCOPYRIGHTBEGIN####                                        
2
// -------------------------------------------                              
3
// This file is part of the eCos host tools.                                
4
// Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.            
5
//
6
// This program is free software; you can redistribute it and/or modify     
7
// it under the terms of the GNU General Public License as published by     
8
// the Free Software Foundation; either version 2 or (at your option) any   
9
// later version.                                                           
10
//
11
// This program is distributed in the hope that it will be useful, but      
12
// WITHOUT ANY WARRANTY; without even the implied warranty of               
13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU        
14
// General Public License for more details.                                 
15
//
16
// You should have received a copy of the GNU General Public License        
17
// along with this program; if not, write to the                            
18
// Free Software Foundation, Inc., 51 Franklin Street,                      
19
// Fifth Floor, Boston, MA  02110-1301, USA.                                
20
// -------------------------------------------                              
21
// ####ECOSHOSTGPLCOPYRIGHTEND####                                          
22
#if !defined(AFX_CSHCOMMON_H__B9FD78FA_DE33_11D3_A53F_00A0C949ADAC__INCLUDED_)
23
#define AFX_CSHCOMMON_H__B9FD78FA_DE33_11D3_A53F_00A0C949ADAC__INCLUDED_
24
 
25
#if _MSC_VER > 1000
26
#pragma once
27
#endif // _MSC_VER > 1000
28
// CSHCommon.h : header file
29
//
30
 
31
/////////////////////////////////////////////////////////////////////////////
32
// CCSHCommon window
33
 
34
class CCSHCommon
35
{
36
// Construction
37
public:
38
        CCSHCommon();
39
 
40
// Attributes
41
public:
42
 
43
// Operations
44
public:
45
 
46
  // What CSHFile() will probably return something starting with this path
47
  static void  SetCSHFilePath(LPCTSTR pszCSHFilePath) { m_strCSHFilePath=pszCSHFilePath; }
48
  static const CString GetCSHFilePath() { return m_strCSHFilePath; }
49
 
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; }
52
 
53
// Implementation
54
public:
55
        virtual ~CCSHCommon();
56
 
57
protected:
58
        bool OnContextMenu (CWnd *pDialog, CPoint pt, UINT idHelp);
59
  enum {ID_WHATS_THIS=42};
60
 
61
  bool m_bSupressContextMenu;
62
 
63
  static CString m_strCSHFilePath;
64
 
65
        static void DisplayHelp (HWND hCtrl, UINT ids, HINSTANCE hInst);
66
 
67
  static CWnd *WndFromPoint(CWnd *pDialog,CWnd* pWnd,CPoint pt);
68
        CWnd* m_pwndContext;
69
 
70
  bool FilterMessage(UINT &message, WPARAM &wParam,LPARAM &lParam,LRESULT *&pResult);
71
};
72
 
73
/////////////////////////////////////////////////////////////////////////////
74
 
75
//{{AFX_INSERT_LOCATION}}
76
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
77
 
78
#endif // !defined(AFX_CSHCOMMON_H__B9FD78FA_DE33_11D3_A53F_00A0C949ADAC__INCLUDED_)

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.