Ejemplo n.º 1
0
void
WndOwnerDrawFrame::on_paint(Canvas &canvas)
{
  if (mOnPaintCallback == NULL)
    return;

  mOnPaintCallback(this, canvas);
}
Ejemplo n.º 2
0
void
WndOwnerDrawFrame::on_paint(Canvas &canvas)
{
  canvas.clear(GetBackBrush());

  if (mOnPaintCallback == NULL)
    return;

  canvas.select(*GetFont());
  canvas.set_text_color(GetForeColor());
  canvas.set_background_color(GetBackColor());
  canvas.background_transparent();

  mOnPaintCallback(this, canvas);
}