Category : C Source Code
Archive   : DLPHONE.ZIP
Filename : DOCMD.C

 
Output of file : DOCMD.C contained in archive : DLPHONE.ZIP
/* docmd.c - Handles menu processing */
/* Copyright (C) 1988 Michael Draganza */

#include
#include
#include "phonlis.h"

void menucmnds(HWND hWnd, WORD wParam);

extern BOOL far pascal opbox();
extern BOOL far pascal addbox();
extern BOOL far pascal About();
extern BOOL far pascal delbox();

extern int index;
extern HANDLE hInst;
char OpenName[MAXLEN];
int boxid;
HANDLE hMenu;
BOOL open;

void menucmnds(HWND hWnd, WORD wParam)
{
FARPROC lpProcTemp;

hMenu = GetMenu(hWnd);
switch (wParam) {

/* File menu commands */

case IDM_OPEN:
lpProcTemp = MakeProcInstance(opbox, hInst);
open = TRUE;
DialogBox(hInst, "AddBox", hWnd, lpProcTemp);
FreeProcInstance(lpProcTemp);
break;
case IDM_ADD:
lpProcTemp = MakeProcInstance(addbox, hInst);
open = FALSE;
DialogBox(hInst, "AddBox", hWnd, lpProcTemp);
FreeProcInstance(lpProcTemp);
break;
case IDM_DEL:
lpProcTemp = MakeProcInstance(delbox, hInst);
DialogBox(hInst, "DelBox", hWnd, lpProcTemp);
FreeProcInstance(lpProcTemp);
break;
case IDM_EXIT:
DestroyWindow(hWnd);
break;
case IDM_ABOUT:
lpProcTemp = MakeProcInstance(About, hInst);
DialogBox(hInst, "AboutBox", hWnd, lpProcTemp);
FreeProcInstance(lpProcTemp);
break;
}
}


  3 Responses to “Category : C Source Code
Archive   : DLPHONE.ZIP
Filename : DOCMD.C

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/