Skip to content

Instantly share code, notes, and snippets.

@mpapierski
Created March 24, 2018 11:32
Show Gist options
  • Save mpapierski/dd9cd100f0df426d062c7a7e818c8d7e to your computer and use it in GitHub Desktop.
Save mpapierski/dd9cd100f0df426d062c7a7e818c8d7e to your computer and use it in GitHub Desktop.
MFC to wxWidgets
s/ON_BN_CLICKED/EVT_BUTTON/g
s/AfxGetApp()/::wxGetApp()/g
s/CObject/wxObject/g
s/CRect/wxRect/g
s/CSize/wxSize/g
s/CDC/wxDC/g
s/CPoint/wxPoint/g
s/CFont/wxFont/g
s/CPen/wxPen/g
s/CBrush/wxBrush/g
s/CMetaFileDC/wxMetaFileDC/g
s/CWnd/wxWindow/g
s/CDialog/wxDialog/g
s/CButton/wxButton/g
s/CListBox/wxListBox/g
s/CComboBox/wxComboBox/g
s/CToolBar/wxToolBar/g
s/CStatusBar/wxStatusBar/g
s/CTreeCtrl/wxTreeCtrl/g
s/MywxListBox/CB_ListBox/g
s/CDocument/wxDocument/g
s/AfxMessageBox/wxMessageBox/g
s/DECLARE_MESSAGE_MAP/DECLARE_EVENT_TABLE/g
s/BEGIN_MESSAGE_MAP/BEGIN_EVENT_TABLE/g
s/END_MESSAGE_MAP/END_EVENT_TABLE/g
s/IMPLEMENT_SERIAL_CLASS_CLASS(/IMPLEMENT_SERIAL_CLASS(/g
s/DECLARE_SERIAL_CLASS/\/\/DECLARE_SERIAL_CLASS/g
s/IMPLEMENT_SERIAL(/IMPLEMENT_SERIAL_CLASS(/g
s/DECLARE_DYNCREATE/DECLARE_DYNAMIC_CLASS/g
s/IMPLEMENT_DYNCREATE(/IMPLEMENT_DYNAMIC_CLASS(/g
s/OnInitDialog(/InitDialog(/g
# CString -> wxString
s/CompareNoCase/CmpNoCase/g
# for wxListCtrl
s/LVITEM/wxListItem/g
s/VERIFY/wxCHECK/g
s/IDOK/wxOK/g
s/IDCANCEL/wxCANCEL/g
s/IDYES/wxYES/g
s/IDNO/wxNO/g
s/MB_YESNO/wxYES_NO/g
s/MB_OK/wxOK/g
s/MB_CENTRE/wxCENTRE/g
s/MB_ICONEXCLAMATION/wxICON_EXCLAMATION/g
s/MB_ICONHAND/wxICON_HAND/g
s/MB_ICONERROR/wxICON_ERROR/g
s/MB_ICONQUESTION/wxICON_QUESTION/g
s/MB_ICONINFORMATION/wxICON_INFORMATION/g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment