-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTOPWND.C
82 lines (55 loc) · 1.63 KB
/
TOPWND.C
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
/***********************************************************************
File: TopWnd.c
Author: JohnMil
Date: 7-21-92
Abstract:
This contains the windows procudure responsible for drawing the
top-view map.
Contents:
TopViewWndProc() -- windows message processor for Top view window.
Revision History:
10-30-92 (JohnMil):
Modified to new personal comment format
************************************************************************/
#include "winmaze.h"
#include "mazproto.h"
#include "net.h"
#include <mmsystem.h>
/*=====================================================================
Function: TopViewWndProc()
Inputs: Standard windows entrypoint parms
Outputs: returns success
Abstract:
Takes care of maintaining the top view map.
======================================================================*/
LRESULT FAR PASCAL TopViewWndProc(
HWND hWnd,
UINT Message,
WPARAM wParam,
LPARAM lParam
)
{
PAINTSTRUCT ps;
HDC hDC;
switch (Message) {
case WM_KEYDOWN:
SendMessage(hWndMaze,WM_KEYDOWN,wParam,lParam);
break;
case WM_MOVE:
break;
case WM_SIZE:
break;
case WM_PAINT:
hDC = BeginPaint(hWnd, &ps);
SetBkMode(hDC, TRANSPARENT);
DrawTopView(hDC,TRUE);
EndPaint(hWnd, &ps);
break;
case WM_CLOSE:
DestroyWindow(hWnd);
break;
default:
return DefWindowProc(hWnd, Message, wParam, lParam);
}
return(0);
}