--- q_a/samples/ntsd/mdi.c 2018/08/09 18:29:36 1.1.1.2 +++ q_a/samples/ntsd/mdi.c 2018/08/09 18:30:02 1.1.1.3 @@ -47,12 +47,10 @@ typedef struct _PerWndInfo { BOOL InitializeApp (void); LONG APIENTRY MainWndProc (HWND, UINT, DWORD, LONG); LONG APIENTRY MDIWndProc (HWND, UINT, DWORD, LONG); -LONG APIENTRY About (HWND, UINT, DWORD, LONG); +BOOL CALLBACK About (HWND, UINT, DWORD, LONG); LONG APIENTRY TextWndProc (HWND, UINT, DWORD, LONG); VOID vTest (PINFO); -extern int FAR PASCAL ShellAbout(HWND, LPCSTR, LPCSTR, HICON); - /***************************************************************************\ * WinMain * @@ -281,10 +279,8 @@ long APIENTRY MainWndProc( case MM_ABOUT: - ShellAbout(ghwndMain, "MDI Demo", "Microsoft Developer Support", NULL); - - // if (DialogBox(ghModule, "AboutBox", ghwndMain, (DLGPROC)About) == -1) - // MessageBox(ghwndMain, "DEMO: About Dialog Creation Error!", "Error", MB_OK); + if (DialogBox(ghModule, "AboutBox", ghwndMain, (DLGPROC)About) == -1) + MessageBox(ghwndMain, "DEMO: About Dialog Creation Error!", "Error", MB_OK); return 0L; // @@ -511,7 +507,7 @@ long APIENTRY MDIWndProc( * 04-13-91 ???? Created. \***************************************************************************/ -long APIENTRY About( +BOOL CALLBACK About ( HWND hDlg, UINT message, DWORD wParam,