home *** CD-ROM | disk | FTP | other *** search
- \comment Windows 3.0 Application Script (Version 1.00)
- \comment
- \comment (C) Copyright DEA Software 1990 All Rights Reserved
- \comment
- \comment
- /**************************************************/
- \if @[5,10+@[4,2]] <> 2
- \skip 1
- /* M O D E L E S S D I A L O G B O X */
- \eskip 1
- \if @[5,10+@[4,2]] <> 1
- \skip 1
- /* M O D A L D I A L O G B O X */
- \eskip 1
- /**************************************************/
-
- /* @[4,10+@[4,2]]DlgProc Dialog Procedure */
-
- BOOL FAR PASCAL @[4,10+@[4,2]]DlgProc (hDlg, message, wParam, lParam)
-
- HWND hDlg;
- unsigned message;
- WORD wParam;
- LONG lParam;
- {
- BOOL bRetVal; /* Value to be returned to the caller */
-
- switch (message)
- {
- case WM_INITDIALOG:
- return (FALSE);
- break;
-
- \if @[5,10+@[4,2]] <> 2 : See if Modeless Dialog Box
- \skip 1
- case WM_CLOSE:
- DestroyWindow (hDlg);
- hDlgModeless = NULL;
- break;
-
- \eskip 1
- case WM_COMMAND:
- switch (wParam)
- {
-
- /* ----------------------------------------------- */
- /* MODIFY #define ID_OK in .h file to match your */
- /* DIALOG BOX value */
- /* ----------------------------------------------- */
-
- /* User wants to make use of values */
- case ID_OK:
- \if @[5,10+@[4,2]] <> 1 : See if Modal Dialog Box
- \skip 1
- EndDialog (hDlg, bRetVal);
- \eskip 1
- \if @[5,10+@[4,2]] <> 2 : See if Modeless Dialog Box
- \skip 1
- DestroyWindow (hDlg);
- hDlgModeless = NULL;
- \eskip 1
- return (TRUE);
-
- /* ----------------------------------------------- */
- /* MODIFY #define ID_CANCEL in .h file to match */
- /* DIALOG BOX value */
- /* ----------------------------------------------- */
-
- /* User wants to ignore values */
- case ID_CANCEL:
- \if @[5,10+@[4,2]] <> 1 : See if Modal Dialog Box
- \skip 1
- EndDialog (hDlg, bRetVal);
- \eskip 1
- \if @[5,10+@[4,2]] <> 2 : See if Modeless Dialog Box
- \skip 1
- DestroyWindow (hDlg);
- hDlgModeless = NULL;
- \eskip 1
- return (TRUE);
-
- /* --------------------------------------------------- */
- /* ADD your code to support other Buttons, Check Boxes */
- /* etc... here. */
- /* --------------------------------------------------- */
-
- /* Tell Windows we did no processing */
- default:
- return (FALSE);
-
- }
- break;
- default:
- return (FALSE);
- break;
- }
-
- } /* @[4,10+@[4,2]]DlgProc END */
-
- \equ @[4,2] = + 1
-