}
}
+
static VOID
DoSaveAs(PINFO pInfo)
{
GWLP_USERDATA,
(LONG_PTR)pInfo);
+ pInfo->hSelf = hwnd;
+
/* add main settings pointer */
pInfo->pRdpSettings = pRdpSettings;
HDC hdcMem = CreateCompatibleDC(hdc);
if (hdcMem)
{
+ WCHAR lpBuffer[32];
+ RECT bmpRc, txtRc;
+ LOGFONTW lf;
+ HFONT hFont;
+
+ GetClientRect(pInfo->hSelf, &bmpRc);
+
SelectObject(hdcMem, pInfo->hHeader);
- BitBlt(hdc,
- 0,
- 0,
- pInfo->headerbitmap.bmWidth,
- pInfo->headerbitmap.bmHeight,
- hdcMem,
- 0,
- 0,
- SRCCOPY);
+ StretchBlt(hdc,
+ 0,
+ 0,
+ bmpRc.right,
+ pInfo->headerbitmap.bmHeight,
+ hdcMem,
+ 0,
+ 0,
+ pInfo->headerbitmap.bmWidth,
+ pInfo->headerbitmap.bmHeight,
+ SRCCOPY);
+
+ txtRc.left = bmpRc.right * 0.25;
+ txtRc.top = 10;
+ txtRc.right = bmpRc.right * 0.75;
+ txtRc.bottom = pInfo->headerbitmap.bmHeight * 0.5;
+
+ ZeroMemory(&lf, sizeof(LOGFONT));
+
+ if (LoadStringW(hInst, IDS_HEADERTEXT1, lpBuffer, 32))
+ {
+ lf.lfHeight = 24;
+ lf.lfCharSet = OEM_CHARSET;
+ lf.lfQuality = DEFAULT_QUALITY;
+ lf.lfWeight = FW_MEDIUM;
+ wcscpy(lf.lfFaceName, L"Tahoma");
+
+ hFont = CreateFontIndirectW(&lf);
+ if (hFont)
+ {
+ SelectObject(hdc, hFont);
+
+ DPtoLP(hdc, (PPOINT)&txtRc, 2);
+ SetTextColor(hdc, RGB(255,255,255));
+ SetBkMode(hdc, TRANSPARENT);
+ DrawTextW(hdc, lpBuffer, -1, &txtRc, DT_BOTTOM | DT_SINGLELINE);
+ DeleteObject(hFont);
+ }
+ }
+
+ txtRc.left = bmpRc.right * 0.25;
+ txtRc.top = txtRc.bottom - 5;
+ txtRc.right = bmpRc.right * 0.75;
+ txtRc.bottom = pInfo->headerbitmap.bmHeight * 0.9;
+
+ if (LoadStringW(hInst, IDS_HEADERTEXT2, lpBuffer, 32))
+ {
+ lf.lfHeight = 30;
+ lf.lfCharSet = OEM_CHARSET;
+ lf.lfQuality = DEFAULT_QUALITY;
+ lf.lfWeight = FW_EXTRABOLD;
+ wcscpy(lf.lfFaceName, L"Tahoma");
+
+ hFont = CreateFontIndirectW(&lf);
+ if (hFont)
+ {
+ SelectObject(hdc, hFont);
+
+ DPtoLP(hdc, (PPOINT)&txtRc, 2);
+ SetTextColor(hdc, RGB(255,255,255));
+ SetBkMode(hdc, TRANSPARENT);
+ DrawTextW(hdc, lpBuffer, -1, &txtRc, DT_TOP | DT_SINGLELINE);
+ }
+ }
+
DeleteDC(hdcMem);
}
LTEXT "", IDC_SETTINGS_RESOLUTION_TEXT, 56, 62, 120, 10, SS_CENTER
END
-IDD_CONNECTDIALOG DIALOGEX 0, 0, 260, 267
+IDD_CONNECTDIALOG DIALOGEX 0, 0, 260, 262
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Remote Desktop Connection"
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
- DEFPUSHBUTTON "Connect",IDOK,147,249,50,14
- PUSHBUTTON "Cancel",IDCANCEL,203,249,50,14
- CONTROL "",IDC_TAB,"SysTabControl32",0x0,7,54,246,190
+ DEFPUSHBUTTON "Connect",IDOK,147,245,50,14
+ PUSHBUTTON "Cancel",IDCANCEL,203,245,50,14
+ CONTROL "",IDC_TAB,"SysTabControl32",0x0,7,50,246,190
END
IDS_PIXEL "%lux%lu Pixels"
IDS_FULLSCREEN "Full Screen"
IDS_BROWSESERVER "<Browse for more...>"
+ IDS_HEADERTEXT1 "Remote Desktop"
+ IDS_HEADERTEXT2 "Connection"
END