Lines Matching refs:hwnd

53 BOOL LoadImageFile(HWND hwnd, PTSTR pstrPathName,
57 BOOL DisplayImage (HWND hwnd, BYTE **ppDib,
83 HWND hwnd; in WinMain() local
124 hwnd = CreateWindow (szProgName, szAppName, in WinMain()
131 ShowWindow (hwnd, iCmdShow); in WinMain()
132 UpdateWindow (hwnd); in WinMain()
138 if (!TranslateAccelerator (hwnd, hAccel, &msg)) in WinMain()
147 LRESULT CALLBACK WndProc (HWND hwnd, UINT message, WPARAM wParam, in WndProc() argument
181 PngFileInitialize (hwnd); in WndProc()
199 if (!LoadImageFile (hwnd, szImgPathName, in WndProc()
205 InvalidateRect (hwnd, NULL, TRUE); in WndProc()
209 DisplayImage (hwnd, &pDib, &pDiData, cxWinSize, cyWinSize, in WndProc()
221 InvalidateRect (hwnd, NULL, TRUE); in WndProc()
225 DisplayImage (hwnd, &pDib, &pDiData, cxWinSize, cyWinSize, in WndProc()
231 hMenu = GetMenu (hwnd); in WndProc()
241 hMenu = GetMenu (hwnd); in WndProc()
249 if (!PngFileOpenDlg (hwnd, szImgPathName, szTitleName)) in WndProc()
260 if (!LoadImageFile (hwnd, szImgPathName, in WndProc()
266 InvalidateRect (hwnd, NULL, TRUE); in WndProc()
270 DisplayImage (hwnd, &pDib, &pDiData, cxWinSize, cyWinSize, in WndProc()
279 if (!PngFileSaveDlg (hwnd, szImgPathName, szTitleName)) in WndProc()
294 MessageBox (hwnd, TEXT ("Error in saving the PNG image"), in WndProc()
310 if (!LoadImageFile (hwnd, szImgPathName, &pbImage, in WndProc()
316 InvalidateRect (hwnd, NULL, TRUE); in WndProc()
320 DisplayImage (hwnd, &pDib, &pDiData, cxWinSize, cyWinSize, in WndProc()
339 if (!LoadImageFile (hwnd, szImgPathName, &pbImage, &cxImgSize, in WndProc()
345 InvalidateRect (hwnd, NULL, TRUE); in WndProc()
349 DisplayImage (hwnd, &pDib, &pDiData, cxWinSize, cyWinSize, in WndProc()
390 InvalidateRect (hwnd, NULL, TRUE); in WndProc()
394 DisplayImage (hwnd, &pDib, &pDiData, cxWinSize, cyWinSize, in WndProc()
400 DialogBox (hInstance, TEXT ("AboutBox"), hwnd, AboutDlgProc) ; in WndProc()
408 hdc = BeginPaint (hwnd, &ps); in WndProc()
414 EndPaint (hwnd, &ps); in WndProc()
428 return DefWindowProc (hwnd, message, wParam, lParam); in WndProc()
661 BOOL LoadImageFile (HWND hwnd, PTSTR pstrPathName, in LoadImageFile() argument
689 SetWindowText (hwnd, szTmp); in LoadImageFile()
693 MessageBox (hwnd, TEXT ("Error in loading the PNG image"), in LoadImageFile()
705 BOOL DisplayImage (HWND hwnd, BYTE **ppDib, argument
731 MessageBox (hwnd, TEXT ("Visual PNG: image is too big");
736 MessageBox (hwnd, TEXT ("Error in displaying the PNG image"),
856 MessageBox (hwnd, TEXT ("Visual PNG: stretched image is too big");