1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
INT_PTR CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
{
UNREFERENCED_PARAMETER(lParam);
switch (message)
{
//----------------------------------------------
//----------------------------------------------
case WM_INITDIALOG:
return (INT_PTR)TRUE;
case WM_PAINT:
{
PAINTSTRUCT ps;
HDC hdc = BeginPaint(hDlg, &ps);
// TODO: Add any drawing code that uses hdc here...
HBITMAP logo;
logo = LoadBitmap(hInst, MAKEINTRESOURCE(IDB_BITMAP1));
HDC logoB;
logoB = CreateCompatibleDC(hdc);
SelectObject(logoB, logo);
BitBlt(hdc, 0, 0, 4100, 4500, logoB, 10, 10, SRCCOPY);
DeleteDC(logoB);
}
case WM_COMMAND:
if (LOWORD(wParam) == IDOK || LOWORD(wParam) == IDCANCEL)
{
EndDialog(hDlg, LOWORD(wParam));
return (INT_PTR)TRUE;
}
break;
}
return (INT_PTR)FALSE;
}
|