示例#1
0
文件: Panel.cpp 项目: hnpilot/XCSoar
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);
}
示例#2
0
文件: Draw.cpp 项目: Plantain/XCSoar
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);
}