home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
wxos2233.zip
/
wxOS2-2_3_3.zip
/
wxWindows-2.3.3
/
contrib
/
samples
/
canvas
/
simple
/
simple.h
< prev
next >
Wrap
C/C++ Source or Header
|
2002-09-08
|
2KB
|
81 lines
/////////////////////////////////////////////////////////////////////////////
// Name: simple.h
// Author: XX
// Created: XX/XX/XX
// Copyright:
/////////////////////////////////////////////////////////////////////////////
#ifndef __simple_H__
#define __simple_H__
#if defined(__GNUG__) && !defined(__APPLE__)
#pragma interface "simple.cpp"
#endif
// Include wxWindows' headers
#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif
#include "wx/canvas/canvas.h"
#include "wx/timer.h"
//----------------------------------------------------------------------------
// constants
//----------------------------------------------------------------------------
#define ID_QUIT 101
// WDR: class declarations
//----------------------------------------------------------------------------
// MyFrame
//----------------------------------------------------------------------------
class MyFrame: public wxFrame
{
public:
// constructors and destructors
MyFrame( wxWindow *parent, wxWindowID id, const wxString &title,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE );
~MyFrame();
private:
// WDR: method declarations for MyFrame
void CreateMyMenuBar();
private:
// WDR: member variable declarations for MyFrame
wxCanvasImage *m_smile1;
wxCanvasImage *m_smile2;
wxCanvasAdmin *m_admin;
wxTimer *m_timer;
private:
// WDR: handler declarations for MyFrame
void OnQuit( wxCommandEvent &event );
void OnCloseWindow( wxCloseEvent &event );
void OnTimer( wxTimerEvent &event );
private:
DECLARE_EVENT_TABLE()
};
//----------------------------------------------------------------------------
// MyApp
//----------------------------------------------------------------------------
class MyApp: public wxApp
{
public:
MyApp();
virtual bool OnInit();
virtual int OnExit();
};
#endif