コード例 #1
0
void TextRenderGdi::Draw(const char *s, size_t sLen, RectF& bb, bool isRtl) {
#if 0
    DrawTransparent(s, sLen, bb, isRtl);
#else
    size_t strLen = str::Utf8ToWcharBuf(s, sLen, txtConvBuf, dimof(txtConvBuf));
    return Draw(txtConvBuf, strLen, bb, isRtl);
#endif
}
コード例 #2
0
ファイル: utility.cpp プロジェクト: intere/tmee
void CTalkMasterConsoleDlg::drawBitmaps()
{
	CDC *pDC = m_staticLogo.GetDC();
	DrawTransparent(&mBitMapLogo, pDC, 0, 0, m_crWhite);

	drawVUMeter( &m_staticVUMeterSpeaker, bListening, nListeningLevel );
	drawVUMeter( &m_staticVUMeterMicrophone, bTalking, nTalkingLevel );

	m_staticLogo.ReleaseDC(pDC);
}
コード例 #3
0
ファイル: Cuckoo.cpp プロジェクト: wernight/cuckoo
INT_PTR CALLBACK AboutDialogProc(
	HWND hDlg,
	UINT uMsg, 
	WPARAM wParam,
	LPARAM lParam)
{
	switch (uMsg) 
	{
	case WM_INITDIALOG:
		return TRUE;

	case WM_PAINT:
		{
		PAINTSTRUCT ps;
		HDC hdc = BeginPaint(hDlg, &ps);

		// Paint the Liberty's logo
		HBITMAP hbmp = LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_LIBERTYS));

		RECT rectDlg;
		GetClientRect(hDlg, &rectDlg);

		BITMAP bmp;
		GetObject(hbmp, sizeof(bmp), &bmp);

		DrawTransparent(hdc, hbmp, 0, (rectDlg.bottom-rectDlg.top)-bmp.bmHeight, RGB(0, 128, 128));

		EndPaint(hDlg, &ps);
		}
		break;

	case WM_COMMAND:
		switch (LOWORD(wParam))
		{
		case IDOK:
		case IDCANCEL:
			EndDialog(hDlg, LOWORD(wParam));
			break;

		case IDC_BEROUX_BUTTON:
			ShellExecute(hDlg, "open", "http://www.beroux.com/", NULL, NULL, SW_SHOWNORMAL);
			break;

		case IDC_LIB_BUTTON:
			ShellExecute(hDlg, "open", "http://www.libertys.com/", NULL, NULL, SW_SHOWNORMAL);
			break;
		}
		return TRUE;
	}

	return FALSE;
}
コード例 #4
0
void TextRenderGdi::Draw(const WCHAR *s, size_t sLen, RectF& bb, bool isRtl) {
#if 0
    DrawTransparent(s, sLen, bb, isRtl);
#else
    CrashIf(!hdcGfxLocked); // hasn't been Lock()ed
    int x = (int) bb.X;
    int y = (int) bb.Y;
    UINT opts = ETO_OPAQUE;
    if (isRtl)
        opts = opts | ETO_RTLREADING;
    ExtTextOut(hdcGfxLocked, x, y, opts, nullptr, s, (UINT)sLen, nullptr);
#endif
}
コード例 #5
0
ファイル: cepane.cpp プロジェクト: Ariemeth/MechCommander2HD
//---------------------------------------------------------------------------
void PaneElement::draw (void)
{
	DrawTransparent( globalPane, shapePane->window, x - midx, y - midy, SizeX, SizeY );
}