Lines Matching defs:hwnd
120 HWND hwnd ;
143 hwnd = CreateWindow (szAppName, NULL,
149 ShowWindow (hwnd, nCmdShow) ;
150 UpdateWindow (hwnd);
162 if (!TranslateAccelerator (hwnd, hAccel, &msg))
186 void DoCaption (HWND hwnd, char *szTitleName)
193 SetWindowText (hwnd, szCaption) ;
196 void OkMessage (HWND hwnd, char *szMessage, char *szTitleName)
203 MessageBox (hwnd, szBuffer, szAppName, MB_OK | MB_ICONEXCLAMATION) ;
206 short AskAboutSave (HWND hwnd, char *szTitleName)
214 nReturn = MessageBox (hwnd, szBuffer, szAppName,
218 if (!SendMessage (hwnd, WM_COMMAND, IDM_SAVE, 0L))
224 long FAR PASCAL _export WndProc (HWND hwnd, UINT message, UINT wParam,
254 hwnd, EDITID, hInst, NULL) ;
260 PopFileInitialize (hwnd) ;
276 OkMessage (hwnd, "File %s cannot be read!",
280 DoCaption (hwnd, szTitleName) ;
362 MessageBox (hwnd, "Edit control out of space.",
375 AskAboutSave (hwnd, szTitleName))
381 DoCaption (hwnd, szTitleName) ;
387 AskAboutSave (hwnd, szTitleName))
390 if (PopFileOpenDlg (hwnd, szFileName, szTitleName))
394 OkMessage (hwnd, "Could not read file %s!",
401 DoCaption (hwnd, szTitleName) ;
414 OkMessage (hwnd, "Could not write file %s",
420 if (PopFileSaveDlg (hwnd, szFileName, szTitleName))
422 DoCaption (hwnd, szTitleName) ;
430 OkMessage (hwnd, "Could not write file %s",
436 if (!PopPrntPrintFile (hInst, hwnd, hwndEdit,
438 OkMessage (hwnd, "Could not print file %s",
443 SendMessage (hwnd, WM_CLOSE, 0, 0L) ;
478 hDlgModeless = PopFindFindDlg (hwnd) ;
488 hDlgModeless = PopFindFindDlg (hwnd) ;
496 hDlgModeless = PopFindReplaceDlg (hwnd) ;
500 if (PopFontChooseFont (hwnd))
508 OkMessage (hwnd, "Help not yet implemented!", NULL) ;
512 DialogBox (hInst, "AboutBox", hwnd, lpfnAboutDlgProc);
518 if (!bNeedSave || IDCANCEL != AskAboutSave (hwnd, szTitleName))
519 DestroyWindow (hwnd) ;
524 if (!bNeedSave || IDCANCEL != AskAboutSave (hwnd, szTitleName))
547 OkMessage (hwnd, "Text not found!", NULL) ;
552 OkMessage (hwnd, "Text not found!", NULL) ;
561 return DefWindowProc (hwnd, message, wParam, lParam) ;