windows-nt/Source/XPSP1/NT/net/ias/mmc/common/hlptable.h

43 lines
1 KiB
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
//+-------------------------------------------------------------------------
//
// 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__