Leaked source code of windows server 2003
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.
 
 
 
 
 
 

42 lines
1.0 KiB

//+-------------------------------------------------------------------------
//
// 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__