This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define WINVER 0x0601 | |
#define _WIN32_WINNT 0x0601 | |
#define GDIPVER 0x0110 | |
#pragma comment(linker, "\"/manifestdependency:type='Win32' name='Microsoft.Windows.GdiPlus' version='1.1.0.0' processorArchitecture='X86' publicKeyToken='6595b64144ccf1df' language='*'\"") | |
#include <wx/wx.h> | |
#include <wx/dcgraph.h> | |
#include <wx/metafile.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define GDIPVER 0x0110 | |
#include <wx/wx.h> | |
#include <wx/dcgraph.h> | |
#include <wx/metafile.h> | |
#include <wx/sharedptr.h> | |
#include <wx/msw/wrapgdip.h> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define GDIPVER 0x0110 | |
#include <wx/wx.h> | |
#include <wx/dcgraph.h> | |
#include <wx/metafile.h> | |
#include <wx/sharedptr.h> | |
#include <wx/msw/wrapgdip.h> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <wx/wx.h> | |
#include <wx/scrolwin.h> | |
#include <wx/dcbuffer.h> | |
#include <wx/filedlg.h> | |
#include <wx/filename.h> | |
class ImageCanvas : public wxScrolledCanvas | |
{ | |
public: | |
ImageCanvas(wxWindow* parent) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <wx/wx.h> | |
#include <wx/scrolwin.h> | |
#include <wx/dcbuffer.h> | |
#include <wx/filedlg.h> | |
#include <wx/filename.h> | |
class ImageCanvas : public wxScrolledCanvas | |
{ | |
public: | |
ImageCanvas(wxWindow* parent) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <wx/wx.h> | |
class MyFrame : public wxFrame | |
{ | |
public: | |
MyFrame() : wxFrame(nullptr, wxID_ANY, "wxWidgets ScrollBar Test", wxDefaultPosition, wxSize(800, 600)) | |
{ | |
wxBoxSizer* mainSizer = new wxBoxSizer(wxHORIZONTAL); | |
m_scrollBar = new wxScrollBar(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxSB_VERTICAL); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifdef _MSC_VER | |
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") | |
#endif | |
#define NOMINMAX | |
#include <windows.h> | |
#include <windowsx.h> | |
#include <tchar.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <wx/wx.h> | |
#include <wx/msw/wrapshl.h> | |
bool MoveToRecycleBin(const wxString& path) | |
{ | |
bool result = false; | |
SHFILEOPSTRUCT fileOp; | |
const wxString temp = path + '\0'; | |
::ZeroMemory(&fileOp, sizeof(fileOp)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <wx/wx.h> | |
#include <wx/artprov.h> | |
#include <wx/bmpbuttn.h> | |
#include <wx/commandlinkbutton.h> | |
class MyDialog : public wxDialog | |
{ | |
public: | |
MyDialog() : wxDialog(NULL, wxID_ANY, "Test", wxDefaultPosition, wxSize(1024, 800)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <wx/wx.h> | |
class MyFrame : public wxFrame | |
{ | |
public: | |
MyFrame() : wxFrame(NULL, wxID_ANY, _("Test"), wxDefaultPosition, wxSize(800, 600)) | |
{ | |
wxSizer* mainSizer = new wxBoxSizer(wxVERTICAL); | |
mainSizer->Add(new wxButton(this, wxID_OK), wxSizerFlags().Expand().TripleBorder()); |
OlderNewer