Changeset 1842
- Timestamp:
- Aug 12, 2015, 7:10:27 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/fm3.c
r1511 r1842 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2008 Steven H.Levine9 Copyright (c) 2008, 2015 Steven H.Levine 10 10 11 11 05 Jan 08 SHL Sync 12 12 18 Jul 08 SHL Add Fortify support 13 13 11 Dec 08 SHL Add exception handler support 14 08 Aug 15 SHL Comments 14 15 15 16 ***********************************************************************/ … … 67 68 # endif 68 69 hwndFrame = StartFM3(hab, argc, argv); 69 if (hwndFrame != (HWND) 70 if (hwndFrame != (HWND)0) { 70 71 for (;;) { 71 72 if (!WinGetMsg(hab, &qmsg, (HWND) 0, 0, 0)) { 72 if (qmsg.hwnd) 73 qmsg.msg = WM_CLOSE; // Map quit to close 74 else 75 break; 73 // Get WM_QUIT 74 if (!qmsg.hwnd) 75 break; // Time to die if no window 76 // Map quit to close 77 // Must use System Menu or Ctrl-Alt-F4 accel to shutdown 78 qmsg.msg = WM_CLOSE; 76 79 } 77 80 if (hwndBubble && 78 ((qmsg.msg > (WM_BUTTON1DOWN - 1)&&79 qmsg.msg < (WM_BUTTON3DBLCLK + 1)) ||80 (qmsg.msg > (WM_CHORD - 1)&&81 qmsg.msg < (WM_BUTTON3CLICK + 1))) &&81 ((qmsg.msg > WM_BUTTON1DOWN - 1 && 82 qmsg.msg < WM_BUTTON3DBLCLK + 1) || 83 (qmsg.msg > WM_CHORD - 1 && 84 qmsg.msg < WM_BUTTON3CLICK + 1)) && 82 85 WinIsWindowVisible(hwndBubble)) 83 WinShowWindow(hwndBubble, FALSE); 86 { 87 WinShowWindow(hwndBubble, FALSE); // Hide 88 } 84 89 WinDispatchMsg(hab, &qmsg); 85 } 90 } // for 91 // Time to die 86 92 if (WinIsWindow(hab, WinWindowFromID(hwndFrame, FID_CLIENT))) 87 93 WinSendMsg(WinWindowFromID(hwndFrame, FID_CLIENT), WM_CLOSE,
Note:
See TracChangeset
for help on using the changeset viewer.