- wxMenu *pMenuNew = new wxMenu;
- pMenuNew->Append(Menu_NewKey, _T("&Key"), _T("Create a new key"));
- pMenuNew->AppendSeparator();
- pMenuNew->Append(Menu_NewText, _T("&Text value"), _T("Create a new text value"));
- pMenuNew->Append(Menu_NewBinary, _T("&Binary value"), _T("Create a new binary value"));
-
- wxMenu *pMenuReg = new wxMenu;
- pMenuReg->Append(Menu_New, _T("&New"), pMenuNew);
- pMenuReg->Append(Menu_Delete, _T("&Delete..."), _T("Delete selected key/value"));
- pMenuReg->AppendSeparator();
- pMenuReg->Append(Menu_GoTo, _T("&Go to...\tCtrl-G"), _T("Go to registry key"));
- pMenuReg->Append(Menu_Expand, _T("&Expand"), _T("Expand current key"));
- pMenuReg->Append(Menu_Collapse, _T("&Collapse"), _T("Collapse current key"));
- pMenuReg->Append(Menu_Toggle, _T("&Toggle"), _T("Toggle current key"));
- pMenuReg->AppendSeparator();
- pMenuReg->Append(Menu_Refresh, _T("&Refresh"), _T("Refresh the subtree"));
- pMenuReg->AppendSeparator();
- pMenuReg->Append(Menu_Info, _T("&Properties"),_T("Information about current selection"));
-
- return pMenuReg;
+ wxMenu *pMenuNew = new wxMenu;
+ pMenuNew->Append(Menu_NewKey, wxT("&Key"), wxT("Create a new key"));
+ pMenuNew->AppendSeparator();
+ pMenuNew->Append(Menu_NewText, wxT("&Text value"), wxT("Create a new text value"));
+ pMenuNew->Append(Menu_NewBinary, wxT("&Binary value"), wxT("Create a new binary value"));
+
+ wxMenu *pMenuView = new wxMenu;
+ pMenuView->AppendRadioItem(
+ Menu_ViewDefault,
+ wxT("&Default"),
+ wxT("Default registry view for the program environment."));
+ pMenuView->AppendRadioItem(
+ Menu_View32,
+ wxT("32-bit Registry"),
+ wxT("View 32-bit registry."));
+ pMenuView->AppendRadioItem(
+ Menu_View64,
+ wxT("64-bit Registry"),
+ wxT("View 64-bit registry."));
+
+ wxMenu *pMenuReg = new wxMenu;
+ pMenuReg->Append(Menu_New, wxT("&New"), pMenuNew);
+ pMenuReg->Append(Menu_Delete, wxT("&Delete..."), wxT("Delete selected key/value"));
+ pMenuReg->AppendSeparator();
+ pMenuReg->Append(Menu_GoTo, wxT("&Go to...\tCtrl-G"), wxT("Go to registry key"));
+ pMenuReg->Append(Menu_Expand, wxT("&Expand"), wxT("Expand current key"));
+ pMenuReg->Append(Menu_Collapse, wxT("&Collapse"), wxT("Collapse current key"));
+ pMenuReg->Append(Menu_Toggle, wxT("&Toggle"), wxT("Toggle current key"));
+ pMenuReg->AppendSeparator();
+ pMenuReg->Append(Menu_Refresh, wxT("&Refresh"), wxT("Refresh the subtree"));
+ pMenuReg->Append(Menu_View, wxT("&View"), pMenuView);
+ pMenuReg->AppendSeparator();
+ pMenuReg->Append(Menu_Info, wxT("&Properties"),wxT("Information about current selection"));
+
+ return pMenuReg;