示例#1
0
 protected void OnSize(object sender, wx.Event e)
 {
     SetBufferSize(this.Width, this.Height);
     Graphics clientDC = Graphics.FromHwnd(this.GetHandle());
     offScreenDC.FillRectangle(Brushes.Black, 0, 0, this.Width, this.Height);
     DrawTitleBar(offScreenDC);
     clientDC.DrawImage(offScreenBmp, this.Left, this.Top);
     e.Skip();
     /*
     SetBufferSize(this.Width, this.Height);
     Graphics clientDC = Graphics.FromHwnd(this.GetHandle());
     memDC.FillRectangle(Brushes.Black, 0, 0, this.Width, this.Height);
     DrawTitleBar(memDC);
     IntPtr hdc = clientDC.GetHdc();
     IntPtr hMemdc = memDC.GetHdc();
     Win32Utils.BitBlt(hdc, 0, 0, this.Width, this.Height,
         hMemdc, 0, 0, Win32Utils.TernaryRasterOperations.SRCCOPY);
     clientDC.ReleaseHdc(hdc);
     memDC.ReleaseHdc(hMemdc);
     */
 }
示例#2
0
 protected void OnUpdateUI(object sender, wx.Event e)
 {
     title_bar.Title = this.Title;
     e.Skip();
     // e.Skip();
 }
示例#3
0
文件: wiwFrame.cs 项目: miquik/mkdb
 protected void OnSize(object sender, wx.Event e)
 {
     e.Skip();
 }
示例#4
0
文件: wiwFrame.cs 项目: miquik/mkdb
 protected void OnPaint(object sender, wx.Event e)
 {
     /*
     Graphics screen_area = Graphics.FromHwnd(Win32Utils.GetDesktopWindow());
     Panel pan = Common.Instance().Canvas;
     Point _start = pan.PointToScreen(new Point(0, 0));
     screen_area.FillRectangle(new SolidBrush(Color.Orange),
                               new Rectangle(_start.X, _start.Y, pan.Width, pan.Height));
     if (IsSelected)
     {
         Pen _pen = new Pen(Color.Red, 10);
         Point ps = pan.PointToScreen(new Point(4, 4));
         screen_area.DrawRectangle(_pen, ps.X, ps.Y, Size.Width + 1, Size.Height + 1);
     }
     */
     e.Skip();
 }
示例#5
0
 protected void OnSizeChanged(object sender, wx.Event evt)
 {
     resultsLC.SetColumnWidth(0, resultsLC.ClientRect.Width - resultsLC.GetColumnWidth(1));
     evt.Skip();
 }
示例#6
0
 protected void OnSize(object sender, wx.Event e)
 {
     Graphics clientDC = Graphics.FromHwnd(m_parent_hwnd);
     clientDC.Clear(m_parent_back);
     e.Skip();
 }