Example #1
0
PanelControl::PanelControl(ContainerControl &parent,
                           int x, int y, unsigned width, unsigned height,
                           const WindowStyle style)
{
  SetForeColor(parent.GetForeColor());
  SetBackColor(parent.GetBackColor());

  set(parent.GetClientAreaWindow(), x, y, width, height, style);
}
Example #2
0
WndOwnerDrawFrame::WndOwnerDrawFrame(ContainerControl &parent,
                                     int X, int Y, int Width, int Height,
                                     const WindowStyle style,
                                     OnPaintCallback_t OnPaintCallback)
  :mOnPaintCallback(OnPaintCallback),
   mOnMouseDownCallback(NULL)
{
  SetForeColor(parent.GetForeColor());
  SetBackColor(parent.GetBackColor());

  set(parent.GetClientAreaWindow(), X, Y, Width, Height, style);
}