43 lines
1 KiB
C
43 lines
1 KiB
C
|
//+-------------------------------------------------------------------------
|
||
|
//
|
||
|
// Microsoft Windows
|
||
|
//
|
||
|
// Copyright (C) Microsoft Corporation, 1999 - 1999
|
||
|
//
|
||
|
// File: hlptable.h
|
||
|
//
|
||
|
//--------------------------------------------------------------------------
|
||
|
|
||
|
#ifndef __GLOBAL_HELP_TABLE__
|
||
|
#define __GLOBAL_HELP_TABLE__
|
||
|
//=============================================================================
|
||
|
// Global Help Table for many Dialog IDs
|
||
|
//
|
||
|
|
||
|
#define SET_HELP_TABLE(nIDD) m_pHelpTable = ::FindHelpTable(__pGlobalCSHelpTable, nIDD)
|
||
|
#define DLG_HELP_ENTRY(nIDD) {nIDD, g_aHelpIDs_##nIDD}
|
||
|
|
||
|
struct CGlobalHelpTable{
|
||
|
UINT nIDD;
|
||
|
const DWORD *pdwTable;
|
||
|
};
|
||
|
|
||
|
inline const DWORD* FindHelpTable(const CGlobalHelpTable *pGTable, UINT nIDD)
|
||
|
{
|
||
|
const DWORD* pdwTable = NULL;
|
||
|
if(pGTable)
|
||
|
{
|
||
|
while(pGTable->nIDD && pGTable->nIDD != nIDD)
|
||
|
pGTable++;
|
||
|
if(pGTable->nIDD)
|
||
|
pdwTable = pGTable->pdwTable;
|
||
|
}
|
||
|
|
||
|
return pdwTable;
|
||
|
};
|
||
|
|
||
|
extern const CGlobalHelpTable __pGlobalCSHelpTable[];
|
||
|
|
||
|
|
||
|
#endif //__GLOBAL_HELP_TABLE__
|