00001 #ifndef __PEEKABOOTYAPP_H 00002 #define __PEEKABOOTYAPP_H 00003 00004 #include "wx/wxprec.h" 00005 00006 #ifndef WX_PRECOMP 00007 #include "wx/wx.h" 00008 #endif 00009 00010 #ifdef __BORLANDC__ 00011 #pragma hdrstop 00012 #endif 00013 00014 #if !wxUSE_THREADS 00015 #error "This sample requires thread support!" 00016 #endif // wxUSE_THREADS 00017 00018 class PeekabootyApp : public wxApp 00019 { 00020 public: 00021 virtual bool OnInit(); 00022 virtual int OnExit(); 00023 static void* VisualizerThread(void*); 00024 void VisualizerThreadImpl(); 00025 00026 private: 00027 int m_currentX; 00028 int m_currentY; 00029 int m_mousePositionX; 00030 int m_mousePositionY; 00031 }; 00032 00033 DECLARE_APP(PeekabootyApp) 00034 00035 #endif