Home | History | Annotate | Download | only in visupng

Lines Matching refs:hwnd

40 LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM);
41 BOOL CALLBACK AboutDlgProc (HWND, UINT, WPARAM, LPARAM) ;
43 BOOL CenterAbout (HWND hwndChild, HWND hwndParent);
51 BOOL LoadImageFile(HWND hwnd, PTSTR pstrPathName,
55 BOOL DisplayImage (HWND hwnd, BYTE **ppDib,
81 HWND hwnd;
122 hwnd = CreateWindow (szProgName, szAppName,
129 ShowWindow (hwnd, iCmdShow);
130 UpdateWindow (hwnd);
136 if (!TranslateAccelerator (hwnd, hAccel, &msg))
145 LRESULT CALLBACK WndProc (HWND hwnd, UINT message, WPARAM wParam,
179 PngFileInitialize (hwnd);
197 if (!LoadImageFile (hwnd, szImgPathName,
203 InvalidateRect (hwnd, NULL, TRUE);
207 DisplayImage (hwnd, &pDib, &pDiData, cxWinSize, cyWinSize,
219 InvalidateRect (hwnd, NULL, TRUE);
223 DisplayImage (hwnd, &pDib, &pDiData, cxWinSize, cyWinSize,
229 hMenu = GetMenu (hwnd);
239 hMenu = GetMenu (hwnd);
247 if (!PngFileOpenDlg (hwnd, szImgPathName, szTitleName))
258 if (!LoadImageFile (hwnd, szImgPathName,
264 InvalidateRect (hwnd, NULL, TRUE);
268 DisplayImage (hwnd, &pDib, &pDiData, cxWinSize, cyWinSize,
277 if (!PngFileSaveDlg (hwnd, szImgPathName, szTitleName))
292 MessageBox (hwnd, TEXT ("Error in saving the PNG image"),
308 if (!LoadImageFile (hwnd, szImgPathName, &pbImage,
314 InvalidateRect (hwnd, NULL, TRUE);
318 DisplayImage (hwnd, &pDib, &pDiData, cxWinSize, cyWinSize,
337 if (!LoadImageFile (hwnd, szImgPathName, &pbImage, &cxImgSize,
343 InvalidateRect (hwnd, NULL, TRUE);
347 DisplayImage (hwnd, &pDib, &pDiData, cxWinSize, cyWinSize,
388 InvalidateRect (hwnd, NULL, TRUE);
392 DisplayImage (hwnd, &pDib, &pDiData, cxWinSize, cyWinSize,
398 DialogBox (hInstance, TEXT ("AboutBox"), hwnd, AboutDlgProc) ;
406 hdc = BeginPaint (hwnd, &ps);
412 EndPaint (hwnd, &ps);
426 return DefWindowProc (hwnd, message, wParam, lParam);
429 BOOL CALLBACK AboutDlgProc (HWND hDlg, UINT message,
457 BOOL CenterAbout (HWND hwndChild, HWND hwndParent)
657 BOOL LoadImageFile (HWND hwnd, PTSTR pstrPathName,
685 SetWindowText (hwnd, szTmp);
689 MessageBox (hwnd, TEXT ("Error in loading the PNG image"),
701 BOOL DisplayImage (HWND hwnd, BYTE **ppDib,
728 MessageBox (hwnd, TEXT ("Error in displaying the PNG image"),