2 // TTEDIT.CPP - The TrueType Editor
4 // (C) 2004 Underground Software
6 // JLH = James L. Hammons <jlhamm@acm.org>
9 // --- ---------- -------------------------------------------------------------
10 // JLH 08/28/2008 Created this file
17 // - Fix problem with owned window causing main window refresh problems
18 // (ironically enough, it doesn't seem to be a problem anymore...)
21 #include "charwindow.h"
24 BEGIN_EVENT_TABLE(CharWindow, wxMiniFrame)
25 EVT_PAINT(CharWindow::OnPaint)
26 // EVT_MOUSE_EVENTS(CharWindow::OnMouseEvent)
29 CharWindow::CharWindow(wxFrame * parent, const wxString &title, const wxPoint &pos,
30 const wxSize &size, long style): wxMiniFrame(parent, -1, title, pos, size, style)
35 CharWindow::~CharWindow()
39 void CharWindow::OnPaint(wxPaintEvent &e)
42 //doesnothing dc.SetBackground(*wxWHITE_BRUSH);
45 // memDC.SelectObject(*bmp);
46 // dc.Blit(0, 0, sizeTPBM.x, sizeTPBM.y, &memDC, 0, 0, wxCOPY);
48 // if (prevTool != -1)
50 // //need ul corner of bitmap, ul corner of dest, width/height
51 // wxPoint pt(sizeStamp.x * (prevTool & 0x03), sizeStamp.y * (prevTool >> 2));
52 // dc.Blit(pt.x, pt.y, sizeStamp.x, sizeStamp.y, &memDC, pt.x, pt.y, wxSRC_INVERT);
55 // memDC.SelectObject(wxNullBitmap);