- dc.DrawRectangle( 0,0,200,50 );
-
- dc.DrawBitmap( m_bitmap, 10, 20, TRUE );
-
-#if 0
+ dc.DrawRectangle( 10,10,200,50 );
+
+ dc.DrawBitmap( m_bitmap, 10, 20, true );
+
+ dc.SetTextForeground(*wxBLUE);
+ dc.DrawText(_T("This text is drawn from OnPaint"), 65, 65);
+
+ wxString tmp;
+ tmp.Printf( _T("Hit any key to display more text: %s"), m_text.c_str() );
+ int w,h;
+ dc.GetTextExtent( tmp, &w, &h );
+ dc.SetBrush( *wxWHITE_BRUSH );
+ dc.DrawRectangle( 65, 85, w, h );
+ dc.DrawText( tmp, 65, 85 );
+
+#if 0