home *** CD-ROM | disk | FTP | other *** search
- /*
- * FORM VIEWER - HEADER FILE
- *
- * LANGUAGE : Microsoft C 5.1
- * ENVIRONMENT : Microsoft Windows 3.00 SDK
- * STATUS : operational
- *
- * Eikon Systems, Inc.
- * 989 East Hillsdale Blvd, Suite 260
- * Foster City, California 94404
- *
- * 07/12/90 1.00 - Kevin P. Welch - initial creation.
- *
- */
-
- /* default window characteristics */
- #define VIEWER_STYLE WS_OVERLAPPEDWINDOW
- #define VIEWER_XPOS CW_USEDEFAULT
- #define VIEWER_YPOS CW_USEDEFAULT
- #define VIEWER_WIDTH ((2*GetSystemMetrics(SM_CXSCREEN))/3)
- #define VIEWER_HEIGHT ((2*GetSystemMetrics(SM_CYSCREEN))/3)
-
- /* window property definitions */
- #define VIEWER_HWNDEDIT MAKEINTRESOURCE(100)
- #define VIEWER_HFORMLIB MAKEINTRESOURCE(101)
-
- #define GET_EDIT(x) GetProp(x,VIEWER_HWNDEDIT)
- #define GET_FORM(x) GetProp(x,VIEWER_HFORMLIB)
-
- #define SET_EDIT(x,y) SetProp(x,VIEWER_HWNDEDIT,y)
- #define SET_FORM(x,y) SetProp(x,VIEWER_HFORMLIB,y)
-
- #define REM_EDIT(x) RemoveProp(x,VIEWER_HWNDEDIT)
- #define REM_FORM(x) RemoveProp(x,VIEWER_HFORMLIB)
-
- /* menu definitions */
- #define IDM_OPEN 0x0100
- #define IDM_EDIT 0x0101
- #define IDM_PRINT 0x0102
- #define IDM_EXIT 0x0103
- #define IDM_ABOUT 0x0104
-
- /* dialog box definitions */
- #define ID_OK IDOK
- #define ID_CANCEL IDCANCEL
- #define ID_FORM 0x0100
-
- /* form interface definitions */
- #define FORM_INIT MAKEINTRESOURCE(2)
- #define FORM_EDIT MAKEINTRESOURCE(3)
- #define FORM_PRINT MAKEINTRESOURCE(4)
-
- /* general programming definitions */
- #define ID(x) GetWindowWord(x,GWW_ID)
- #define PARENT(x) GetWindowWord(x,GWW_HWNDPARENT)
- #define INSTANCE(x) GetWindowWord(x,GWW_HINSTANCE)
- #define WARNING(x,y) MessageBox(x,y,"Form Viewer",MB_OK|MB_ICONASTERISK)
-
- /* utility function definitions */
- HANDLE FAR PASCAL GetText( HWND );
- HANDLE FAR PASCAL SetText( HWND, HANDLE );
- BOOL FAR PASCAL CenterPopup( HWND, HWND );
- BOOL FAR PASCAL Dialog( HWND, LPSTR, FARPROC );
-
- /* window function definitions *application specific definitions */
- BOOL FAR PASCAL OpenDlgFn( HWND, WORD, WORD, LONG );
- BOOL FAR PASCAL AboutDlgFn( HWND, WORD, WORD, LONG );
- LONG FAR PASCAL ViewerWndFn( HWND, WORD, WORD, LONG );
-
- /* form library function definitions */
- typedef HANDLE (FAR PASCAL * LPEDITFN)( HWND, HANDLE );
- typedef HANDLE (FAR PASCAL * LPPRINTFN)( HWND, HANDLE );
-