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.
63 lines
1.7 KiB
63 lines
1.7 KiB
//****************************************************************************
|
|
//
|
|
// Module: LIGHTS.EXE
|
|
// File: help.c
|
|
// Content: This file contains the context-sensitive help routine/data.
|
|
// History:
|
|
// Sun 03-Jul-1994 15:22:54 -by- Viroon Touranachun [viroont]
|
|
//
|
|
// Copyright (c) Microsoft Corporation 1991-1994
|
|
//
|
|
//****************************************************************************
|
|
|
|
#include "lights.h"
|
|
#include <help.h>
|
|
|
|
//****************************************************************************
|
|
// Context-sentive help/control mapping arrays
|
|
//****************************************************************************
|
|
|
|
char gszHelpFile[] = "windows.hlp"; // help filename
|
|
|
|
// Modem light dialog
|
|
//
|
|
DWORD gaLights[] = {
|
|
IDC_MODEM_FRAME, IDH_LIGHTS,
|
|
IDC_MODEMTIMESTRING, IDH_LIGHTS,
|
|
IDC_MODEM_TX_FRAME, IDH_LIGHTS,
|
|
IDC_MODEM_RX_FRAME, IDH_LIGHTS,
|
|
0, 0};
|
|
|
|
/****************************************************************************
|
|
* @doc INTERNAL
|
|
*
|
|
* @func void NEAR PASCAL | ContextHelp | This function handles the context
|
|
* sensitive help user interaction.
|
|
*
|
|
* @rdesc Returns none
|
|
*
|
|
****************************************************************************/
|
|
|
|
void NEAR PASCAL ContextHelp (LPDWORD aHelp, UINT uMsg,
|
|
WPARAM wParam,LPARAM lParam)
|
|
{
|
|
HWND hwnd;
|
|
UINT uType;
|
|
|
|
// Determine the help type
|
|
//
|
|
if (uMsg == WM_HELP)
|
|
{
|
|
hwnd = ((LPHELPINFO)lParam)->hItemHandle;
|
|
uType = HELP_WM_HELP;
|
|
}
|
|
else
|
|
{
|
|
hwnd = (HWND)wParam;
|
|
uType = HELP_CONTEXTMENU;
|
|
};
|
|
|
|
// Let Help take care of it
|
|
//
|
|
WinHelp(hwnd, gszHelpFile, uType, (DWORD)aHelp);
|
|
}
|