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
/********************************************************************************* | |
Demonstrates that ListView_HitTest() doesn't account for the header. | |
If the mouse cursor is over the listview header and we translate the current | |
mouse cursor screen coordinates with ScreenToClient(hwndListView), | |
the listview reports: | |
* for the unscrolled view, hit on item 0, | |
* for the scrolled view, hit on an item above the top visible item. | |
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/process.h> | |
class MyProcess : public wxProcess | |
{ | |
public: | |
void OnTerminate(int pid, int status) override | |
{ | |
wxLogMessage("MyProcess::OnTerminate(): pid = %d, status = %d", pid, status); | |
} |
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/process.h> | |
class MyProcess : public wxProcess | |
{ | |
public: | |
void OnTerminate(int pid, int status) override | |
{ | |
wxLogMessage("OnTerminate(): pid = %d, status = %d", pid, status); | |
} |
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/desktopenv.h> | |
class MyFrame : public wxFrame | |
{ | |
public: | |
MyFrame() : wxFrame(nullptr, wxID_ANY, "RecycleBin restore Test") | |
{ | |
wxPanel* mainPanel = new wxPanel(this); | |
wxBoxSizer* mainPanelSizer = new wxBoxSizer(wxVERTICAL); |
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 <windows.h> | |
#include <tchar.h> | |
void FatalError(LPCTSTR errorMessage) | |
{ | |
MessageBox(NULL, errorMessage, _T("Fatal error"), MB_OK | MB_ICONERROR); | |
exit(-1); | |
} | |
void Paint(HWND hWnd) |
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/webview.h> | |
const char* HTMLSource = | |
R"(<!DOCTYPE html> | |
<html> | |
<body> | |
<h1>Log In</h1> |
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/scrolwin.h> | |
class MyFrame: public wxFrame | |
{ | |
public: | |
MyFrame() : wxFrame (nullptr, wxID_ANY, "Test") | |
{ | |
wxSizer* scrolledSizer = new wxBoxSizer(wxVERTICAL); |
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/datectrl.h> | |
#ifdef __WXMSW__ | |
#include <wx/msw/wrapcctl.h> | |
#endif; | |
// wxDatePickerNoToday is a wxDatePickerCtrl with wxDP_DROPDOWN style | |
// which on MSW does not display the today circle and today date | |
// in the drop down calendar |
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> | |
class MyApp : public wxApp | |
{ | |
public: | |
bool OnInit() override | |
{ | |
wxFrame* f = new wxFrame(nullptr, wxID_ANY, "Toolbar test"); | |
wxPanel* p = new wxPanel(f); |
NewerOlder