⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 toolbutton.h

📁 非常好用的可移植的多平台C/C++源代码编辑器
💻 H
字号:
///////////////////////////////////////////////////////////////////////////////
// Name:        wx/msw/toolbutton.h
// Purpose:     wxToolButton class
// Author:      Mark McCormack
// Modified by:
// Created:     10/04/04
// RCS-ID:      
// Copyright:   
// Licence:     wxWindows licence
///////////////////////////////////////////////////////////////////////////////

#ifndef _WX_TOOLBUTTON_H_
#define _WX_TOOLBUTTON_H_

// ----------------------------------------------------------------------------
// headers
// ----------------------------------------------------------------------------

#include <wx/dockit_defs.h>
#include <wx/toolbutton.h>
#include <wx/msw/private.h>

// ----------------------------------------------------------------------------
// wxToolButtonBase
// ----------------------------------------------------------------------------

class WXDOCKIT_DECLSPEC wxToolButton : public wxToolButtonBase
{
public:
    // Default constructor
    wxToolButton() {
        Init();
    }

    void Init();
    
    // Normal constructor
    wxToolButton( wxWindow *parent, wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition,
        const wxSize& size = wxDefaultSize, long style = 0, const wxString& name = wxT("toolbutton") ) {
        Init();
        Create(parent, id, pos, size, style, name);
    }

    bool Create( wxWindow *parent, wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition,
        const wxSize& size = wxDefaultSize, long style = 0, const wxString& name = wxT("toolbutton") );

    virtual ~wxToolButton();

private:
    void OnSize( wxSizeEvent &event );
    void OnErase( wxEraseEvent &event );

    // MSW Specific
    virtual bool MSWOnNotify( int idCtrl, WXLPARAM lParam, WXLPARAM *result );
    virtual bool MSWCommand( WXUINT param, WXWORD WXUNUSED(id) );
    
    void createToolbar( const wxPoint& pos, const wxSize& size, long style, wxWindowID id );

private:
    // attributes
    SIZE m_toolButtonSize;

private:
    DECLARE_DYNAMIC_CLASS( wxToolButton )
    DECLARE_EVENT_TABLE();
};

#endif
    // _WX_TOOLBUTTONBASE_H_

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -