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

📄 xh_statpict.cpp

📁 wxGTK 是 wxWidgets 的 linux GTK+ (>2.2.3)版本。wxWidgets 是一个跨平台的 GUI 框架
💻 CPP
字号:
/////////////////////////////////////////////////////////////////////////////// Name:        xh_statpict.cpp// Purpose:     XRC resource handler for wxStaticPicture// Author:      David A. Norris// Created:     2005/03/13// RCS-ID:      $Id: xh_statpict.cpp,v 1.2 2005/09/23 12:47:48 MR Exp $// Copyright:   David A. Norris// Licence:     wxWindows Licence/////////////////////////////////////////////////////////////////////////////// For compilers that support precompilation, includes "wx.h".#include "wx/wxprec.h"#ifdef __BORLANDC__    #pragma hdrstop#endif#if wxUSE_XRC#include "wx/gizmos/statpict.h"#include "wx/gizmos/xh_statpict.h"// Register with wxWindows' dynamic class subsystem.IMPLEMENT_DYNAMIC_CLASS(wxStaticPictureXmlHandler, wxXmlResourceHandler)// Constructor.wxStaticPictureXmlHandler::wxStaticPictureXmlHandler(){    AddWindowStyles();}// Creates the control and returns a pointer to it.wxObject *wxStaticPictureXmlHandler::DoCreateResource(){    XRC_MAKE_INSTANCE(control, wxStaticPicture)    control->Create(m_parentAsWindow, GetID(),        GetBitmap(wxT("bitmap"), wxART_OTHER, GetSize()),        GetPosition(), GetSize(), GetStyle(), GetName());    SetupWindow(control);    return control;}// Returns true if we know how to create a control for the given node.bool wxStaticPictureXmlHandler::CanHandle(wxXmlNode *node){    return IsOfClass(node, wxT("wxStaticPicture"));}#endif // wxUSE_XRC

⌨️ 快捷键说明

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