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
|
case WM_PAINT:
LPWSTR fn;
BeginPaint(hWnd, &ps); //Need this for correct operation of WM_PAINT
SetBkColor(hdc, RGB(240, 240, 240));
HDC hdc;
hdc = GetDc( Handle_of_tab_control_window); //===============================
dcSkin = CreateCompatibleDC(hdc);
GetObject(hbmpl, sizeof(bm), &bm);
SelectObject(dcSkin, hbmpl);
BitBlt(hdc, 248,94,551,277, dcSkin, 0, 0, SRCCOPY); //see note 1 below
DeleteDC(dcSkin);
HFONT hFont;
hFont = CreateFont(-MulDiv(9, GetDeviceCaps(hdc, LOGPIXELSY), 72),0,0,0,100,FALSE,FALSE,FALSE,0,0,
0,CLEARTYPE_QUALITY, 0,TEXT("Segeo UI"));
SelectObject(hdc,hFont);
TextOut(hdc,5, 608,_T("Project:"), 8);//See note 1 below
TextOut(hdc,5, 624,_T("Version:"), 8);//see note 1 below
TextOut(hdc,86, 608,game, _tcslen(game));//see note 1 below
ReleaseDC(Handle_of_tab_control_window, hdc);//================================
EndPaint(hWnd, &ps);//need to keep this for correct operation of WM_PAINT
break;
|