summaryrefslogtreecommitdiffstats
path: root/private/oleutest/simpsvr/simpsvr.h
blob: df252579ae17f0226cd189590eb8e99d6714c47a (plain) (blame)
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
//**********************************************************************
// File name: simpsvr.h
//
// Copyright (c) 1993 Microsoft Corporation. All rights reserved.
//**********************************************************************
#define IDM_ABOUT 100
#define IDM_INSERT  101
#define IDM_VERB0 1000

int PASCAL WinMain
#ifdef WIN32
   (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow);
#else
   (HANDLE  hInstance, HANDLE hPrevInstance, LPSTR lpCmdLine, int nCmdShow);
#endif

BOOL InitApplication(HANDLE hInstance);
BOOL InitInstance(HANDLE hInstance, int nCmdShow);
long FAR PASCAL EXPORT MainWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
long FAR PASCAL EXPORT DocWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
#ifdef WIN32
BOOL CALLBACK About(HWND hDlg, UINT message, WORD wParam, LONG lParam);
#else
BOOL FAR PASCAL EXPORT About(HWND hDlg, UINT message, WORD wParam, LONG lParam);
#endif

#define SZCLASSICONBOX "SimpSvrIBClass"
#define SZCLASSRESULTIMAGE "SimpSvrRIClass"

#ifdef WIN32
   // The following functions are all obsolete in Win32.
   // By using the following macros, we can use the app in both Win16 and
   // Win32
	#define SetWindowOrg(h,x,y)       SetWindowOrgEx((h),(x),(y),NULL)
	#define SetWindowExt(h,x,y)       SetWindowExtEx((h),(x),(y),NULL)
   #define SetViewportExt(h,x,y)     SetViewportExtEx((h),(x),(y),NULL)
   #ifndef EXPORT
      #define EXPORT
   #endif
#else

   #ifndef EXPORT
      // _export is obsolete in Win32
      #define EXPORT _export
   #endif

#endif