Home | History | Annotate | Download | only in visupng

Lines Matching full:hwnd

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