Lines Matching refs:dc
478 CDC* dc = GetDC(); in PositionChildren() local
480 CFont *old_font = dc->SelectObject(&m_dialog_font); in PositionChildren()
483 GetTextExtentPoint32W(dc->GetSafeHdc(), text, text.GetLength(), &sz); in PositionChildren()
493 GetTextExtentPoint32W(dc->GetSafeHdc(), text, text.GetLength(), &sz); in PositionChildren()
494 dc->SelectObject(old_font); in PositionChildren()
495 ReleaseDC(dc); in PositionChildren()
1479 CPaintDC dc(this); // device context for painting in OnPaint() local
1487 dc.DrawFocusRect(&rect); in OnPaint()
2189 void table_header::PaintHeader(CDC *dc, CRect &size) in PaintHeader() argument
2204 CPen *old_pen = dc->SelectObject(&line_pen); in PaintHeader()
2205 CBrush *old_brush = dc->SelectObject(&gray_brush); in PaintHeader()
2207 dc->SetTextColor(RGB(0, 0, 0)); in PaintHeader()
2208 dc->SetBkMode(TRANSPARENT); in PaintHeader()
2210 dc->FillRect(&size, &gray_brush); in PaintHeader()
2211 dc->MoveTo(size.left, size.top); in PaintHeader()
2212 dc->LineTo(size.right, size.top); in PaintHeader()
2213 dc->MoveTo(size.left, size.bottom - 1); in PaintHeader()
2214 dc->LineTo(size.right, size.bottom -1); in PaintHeader()
2215 dc->MoveTo(size.left, size.top); in PaintHeader()
2216 dc->LineTo(size.left, size.bottom -1); in PaintHeader()
2217 dc->MoveTo(size.right - 1, size.top); in PaintHeader()
2218 dc->LineTo(size.right - 1, size.bottom -1); in PaintHeader()
2221 CFont *old_font = dc->SelectObject(dlg->GetDialogFont()); in PaintHeader()
2227 dc->DrawText(_T("StringId"), &boxsize, DT_LEFT); in PaintHeader()
2229 …PaintBmp(dc, boxsize.left + dc->GetTextExtent(_T("String Id")).cx + 8, boxsize.top + 4, IDB_DOWN_A… in PaintHeader()
2230 dc->MoveTo(boxsize.right, boxsize.top); in PaintHeader()
2231 dc->LineTo(boxsize.right, boxsize.bottom); in PaintHeader()
2245 dc->DrawText(text, &boxsize, DT_LEFT); in PaintHeader()
2248 PaintBmp(dc, boxsize.left + dc->GetTextExtent(text).cx + 8, boxsize.top + 4, IDB_DOWN_ARROW); in PaintHeader()
2256 dc->MoveTo(boxsize.left, boxsize.top); in PaintHeader()
2257 dc->LineTo(boxsize.left, boxsize.bottom); in PaintHeader()
2258 PaintBmp(dc, boxsize.left + 1, boxsize.top + 4, IDB_RIGHT_ARROW); in PaintHeader()
2261 dc->DrawText(text, &boxsize, DT_LEFT); in PaintHeader()
2264 PaintBmp(dc, boxsize.right - (m_icon_width << 1) - 1, boxsize.top + 3, IDB_LEFT_ARROW); in PaintHeader()
2265 PaintBmp(dc, boxsize.right - m_icon_width - 1, boxsize.top + 3, IDB_RIGHT_ARROW); in PaintHeader()
2269 PaintBmp(dc, boxsize.right - m_icon_width - 1, boxsize.top + 4, IDB_LEFT_ARROW); in PaintHeader()
2272 dc->SelectObject(old_brush); in PaintHeader()
2273 dc->SelectObject(old_pen); in PaintHeader()
2274 dc->SelectObject(old_font); in PaintHeader()
2283 CDC *dc = GetDC(); in OnPaint() local
2286 PaintHeader(dc, size); in OnPaint()
2287 ReleaseDC(dc); in OnPaint()
2345 void table_row::PaintStringRow(CDC *dc, CRect &size) in PaintStringRow() argument
2354 CPen *old_pen = dc->SelectObject(&line_pen); in PaintStringRow()
2355 CBrush *old_brush = dc->SelectObject(&edit_brush); in PaintStringRow()
2357 dc->SetTextColor(GetSysColor(COLOR_WINDOWTEXT)); in PaintStringRow()
2358 dc->SetBkMode(TRANSPARENT); in PaintStringRow()
2362 CFont *old_font = dc->SelectObject(frame->GetUniFont()); in PaintStringRow()
2380 dc->SetTextColor(GetSysColor(COLOR_HIGHLIGHTTEXT)); in PaintStringRow()
2385 dc->SetTextColor(GetSysColor(COLOR_WINDOWTEXT)); in PaintStringRow()
2390 dc->FillRect(size, &select_brush); in PaintStringRow()
2394 dc->FillRect(boxsize, &edit_brush); in PaintStringRow()
2395 dc->SetTextColor(GetSysColor(COLOR_WINDOWTEXT)); in PaintStringRow()
2398 dc->DrawText(mpTable->GetStringId(mStringIndex), &boxsize, DT_LEFT); in PaintStringRow()
2399 dc->MoveTo(boxsize.right, size.top); in PaintStringRow()
2400 dc->LineTo(boxsize.right, size.bottom -1); in PaintStringRow()
2416 dc->SetTextColor(GetSysColor(COLOR_WINDOWTEXT)); in PaintStringRow()
2419 dc->FillRect(boxsize, &view_only); in PaintStringRow()
2423 dc->FillRect(boxsize, &edit_brush); in PaintStringRow()
2433 DrawTextW(*dc, text.GetString(), -1, &boxsize, DT_LEFT); in PaintStringRow()
2439 DrawTextW(*dc, uni_text, -1, &boxsize, DT_LEFT); in PaintStringRow()
2451 dc->MoveTo(boxsize.left, boxsize.top); in PaintStringRow()
2452 dc->LineTo(boxsize.left, boxsize.bottom); in PaintStringRow()
2460 DrawTextW(*dc, text.GetString(), -1, &boxsize, DT_LEFT); in PaintStringRow()
2466 DrawTextW(*dc, uni_text, -1, &boxsize, DT_LEFT); in PaintStringRow()
2473 dc->MoveTo(size.left, size.top); in PaintStringRow()
2474 dc->LineTo(size.left, size.bottom -1); in PaintStringRow()
2475 dc->MoveTo(size.right - 1, size.top); in PaintStringRow()
2476 dc->LineTo(size.right - 1, size.bottom -1); in PaintStringRow()
2477 dc->MoveTo(size.left, size.bottom - 1); in PaintStringRow()
2478 dc->LineTo(size.right, size.bottom - 1); in PaintStringRow()
2479 dc->SelectObject(old_brush); in PaintStringRow()
2480 dc->SelectObject(old_pen); in PaintStringRow()
2481 dc->SelectObject(old_font); in PaintStringRow()
2489 CDC *dc = GetDC(); in OnPaint() local
2492 PaintStringRow(dc, size); in OnPaint()
2493 ReleaseDC(dc); in OnPaint()
2550 CDC *dc = GetDC(); in GetRowHeight() local
2554 CFont *old_font = dc->SelectObject(frame->GetUniFont()); in GetRowHeight()
2556 mRowHeight = dc->GetTextExtent(_T("A"), 1).cy + 5; in GetRowHeight()
2558 dc->SelectObject(old_font); in GetRowHeight()
2559 ReleaseDC(dc); in GetRowHeight()
2743 CDC *dc = GetWindowDC(); in PositionChildren() local
2760 text_extent = dc->GetTextExtent(row->GetInfoText()); in PositionChildren()
2832 dc->SelectObject(oldFont); in PositionChildren()
3025 CPaintDC dc(this); // device context for painting in OnPaint() local
3038 CFont *oldFont = dc.SelectObject(parent->GetDialogFont()); in OnPaint()
3039 dc.SetBkMode(TRANSPARENT); in OnPaint()
3040 dc.SetTextColor(NORMAL_TEXT_COLOR); in OnPaint()
3044 dc.DrawText(mInfoText, &rect, DT_SINGLELINE | DT_VCENTER); in OnPaint()
3045 dc.SelectObject(oldFont); in OnPaint()
3056 SetMapMode(dc.GetSafeHdc(), MM_TEXT); in OnPaint()
3058 … StretchDIBits(dc.GetSafeHdc(), client.left, client.top + m_text_height - 2, des_width, des_height, in OnPaint()
3065 CPen *oldPen = dc.SelectObject(&brush); in OnPaint()
3066 dc.MoveTo(client.left, client.bottom - 1); in OnPaint()
3067 dc.LineTo(client.right, client.bottom - 1); in OnPaint()
3068 dc.SelectObject(oldPen); in OnPaint()
3236 CPaintDC dc(this); // device context for painting in OnPaint() local