wxBackgroundBitmap.cpp

Go to the documentation of this file.
00001 #include ".\wxBackgroundBitmap.h"
00002 
00003 bool wxBackgroundBitmap::ProcessEvent(wxEvent &Event)
00004 {
00005         bool ret= Inherited::ProcessEvent( Event);
00006         if (Event.GetEventType() == wxEVT_ERASE_BACKGROUND) 
00007         {
00008                 if( this->m_p_parent== 0)
00009                         return ret;
00010                 wxEraseEvent &EraseEvent = dynamic_cast<wxEraseEvent &>(Event);
00011                 wxDC *dc= EraseEvent.GetDC();
00012                 dc->DrawBitmap( this->m_bitmap, this->m_p_parent->GetClientSize().GetWidth()- this->m_bitmap.GetWidth(), 0, true);
00013                 return true;
00014         } 
00015         return ret;
00016 }

Generated on Mon Mar 19 17:14:08 2007 for CAENScope by  doxygen 1.4.6-NO