TOPWND.C

/*********************************************************************** 
File: TopWnd.c

Abstract:

This contains the windows procudure responsible for drawing the
top-view map.


Contents:

TopViewWndProc() -- windows message processor for Top view window.



************************************************************************/

#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.
======================================================================*/

LONG FAR PASCAL TopViewWndProc(
HWND hWnd,
UINT Message,
UINT wParam,
LONG 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);
}