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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Test</title> | |
<meta charset="UTF-8"> | |
</head> | |
<body> | |
<h1>Title H1</h1> | |
<p>Right click or double click inside the document to trigger a response inside wxWidgets C++ code.</p> |
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/filename.h> | |
#include <wx/stdpaths.h> | |
#include <wx/uri.h> | |
#include <wx/webview.h> | |
#if defined(__WXMSW__) | |
#include <wx/msw/webview_ie.h> | |
#endif //#if defined(__WXMSW__) | |
#include <map> |
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/choicdlg.h> | |
#include <wx/dirdlg.h> | |
#include <wx/dynlib.h> | |
#include <wx/msw/private/comptr.h> | |
#include <wx/msw/wrapwin.h> | |
#include <wx/msw/wrapshl.h> | |
#include <initguid.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
// Shows dimensions of many wxWidgets common controls | |
// in pixels and dips, automatically updated when DPI changes. | |
// MSW only, wxWidgets 3.1.3+ only | |
#include <wx/wx.h> | |
#include <wx/activityindicator.h> | |
#include <wx/artprov.h> | |
#include <wx/bmpbuttn.h> | |
#include <wx/commandlinkbutton.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> | |
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()); |
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> | |
#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
#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> | |
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
#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) |