www.pudn.com > Phone.rar > myframe.h, change:2007-05-18,size:2538b
/////////////////////////////////////////////////////////////////////////////
// Name: myframe.h
// Purpose:
// Author:
// Modified by:
// Created: 18/05/2007 09:35:23
// RCS-ID:
// Copyright:
// Licence:
/////////////////////////////////////////////////////////////////////////////
#ifndef _MYFRAME_H_
#define _MYFRAME_H_
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma interface "myframe.h"
#endif
/*!
* Includes
*/
////@begin includes
#include "wx/frame.h"
////@end includes
/*!
* Forward declarations
*/
////@begin forward declarations
////@end forward declarations
/*!
* Control identifiers
*/
////@begin control identifiers
#define ID_MYFRAME 10000
#define SYMBOL_MYFRAME_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX
#define SYMBOL_MYFRAME_TITLE _("MyFrame")
#define SYMBOL_MYFRAME_IDNAME ID_MYFRAME
#define SYMBOL_MYFRAME_SIZE wxSize(400, 300)
#define SYMBOL_MYFRAME_POSITION wxDefaultPosition
////@end control identifiers
/*!
* Compatibility
*/
#ifndef wxCLOSE_BOX
#define wxCLOSE_BOX 0x1000
#endif
/*!
* MyFrame class declaration
*/
class MyFrame: public wxFrame
{
DECLARE_CLASS( MyFrame )
DECLARE_EVENT_TABLE()
public:
/// Constructors
MyFrame();
MyFrame( wxWindow* parent, wxWindowID id = SYMBOL_MYFRAME_IDNAME, const wxString& caption = SYMBOL_MYFRAME_TITLE, const wxPoint& pos = SYMBOL_MYFRAME_POSITION, const wxSize& size = SYMBOL_MYFRAME_SIZE, long style = SYMBOL_MYFRAME_STYLE );
bool Create( wxWindow* parent, wxWindowID id = SYMBOL_MYFRAME_IDNAME, const wxString& caption = SYMBOL_MYFRAME_TITLE, const wxPoint& pos = SYMBOL_MYFRAME_POSITION, const wxSize& size = SYMBOL_MYFRAME_SIZE, long style = SYMBOL_MYFRAME_STYLE );
/// Destructor
~MyFrame();
/// Initialises member variables
void Init();
/// Creates the controls and sizers
void CreateControls();
////@begin MyFrame event handler declarations
////@end MyFrame event handler declarations
////@begin MyFrame member function declarations
/// Retrieves bitmap resources
wxBitmap GetBitmapResource( const wxString& name );
/// Retrieves icon resources
wxIcon GetIconResource( const wxString& name );
////@end MyFrame member function declarations
/// Should we show tooltips?
static bool ShowToolTips();
////@begin MyFrame member variables
////@end MyFrame member variables
};
#endif
// _MYFRAME_H_