mirror of https://github.com/tongzx/nt5src
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.
94 lines
2.4 KiB
94 lines
2.4 KiB
/////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Copyright (c) 1996-1997 Microsoft Corporation
|
|
//
|
|
// Module Name:
|
|
// DlgHelp.h
|
|
//
|
|
// Abstract:
|
|
// Definition of the CDialogHelp class.
|
|
//
|
|
// Implementation File:
|
|
// DlgHelp.cpp
|
|
//
|
|
// Author:
|
|
// David Potter (davidp) February 6, 1997
|
|
//
|
|
// Revision History:
|
|
//
|
|
// Notes:
|
|
//
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef _DLGHELP_H_
|
|
#define _DLGHELP_H_
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// Forward Class Declarations
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
class CDialogHelp;
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// External Class Declarations
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// Include Files
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// Type Definitions
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
struct CMapCtrlToHelpID
|
|
{
|
|
DWORD m_nCtrlID;
|
|
DWORD m_nHelpCtrlID;
|
|
};
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CDialogHelp dialog
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
class CDialogHelp : public CObject
|
|
{
|
|
DECLARE_DYNAMIC(CDialogHelp)
|
|
|
|
// Construction
|
|
public:
|
|
CDialogHelp(void) { CommonConstruct(); }
|
|
CDialogHelp(const CMapCtrlToHelpID * pmap, DWORD dwMask);
|
|
|
|
void CommonConstruct(void);
|
|
|
|
// Attributes
|
|
protected:
|
|
const CMapCtrlToHelpID * m_pmap;
|
|
DWORD m_dwMask;
|
|
DWORD m_nHelpID;
|
|
|
|
public:
|
|
const CMapCtrlToHelpID * Pmap(void) const { return m_pmap; }
|
|
DWORD DwMask(void) const { return m_dwMask; }
|
|
DWORD NHelpID(void) const { return m_nHelpID; }
|
|
|
|
DWORD NHelpFromCtrlID(IN DWORD nCtrlID) const;
|
|
|
|
// Operations
|
|
public:
|
|
void SetHelpMask(IN DWORD dwMask) { ASSERT(dwMask != 0); m_dwMask = dwMask; }
|
|
|
|
void OnContextMenu(CWnd * pWnd, CPoint point);
|
|
BOOL OnHelpInfo(HELPINFO * pHelpInfo);
|
|
LRESULT OnCommandHelp(WPARAM wParam, LPARAM lParam);
|
|
|
|
// Overrides
|
|
|
|
// Implementation
|
|
|
|
}; //*** class CDialogHelp
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
#endif // _DLGHELP_H_
|