- wxMenu *pMenuNew = new wxMenu;
- pMenuNew->Append(Menu_NewKey, "&Key", "Create a new key");
- pMenuNew->AppendSeparator();
- pMenuNew->Append(Menu_NewText, "&Text value", "Create a new text value");
- pMenuNew->Append(Menu_NewBinary, "&Binary value", "Create a new binary value");
-
- wxMenu *pMenuReg = new wxMenu;
- pMenuReg->Append(Menu_New, "&New", pMenuNew);
- pMenuReg->Append(Menu_Delete, "&Delete...", "Delete selected key/value");
- pMenuReg->AppendSeparator();
- pMenuReg->Append(Menu_GoTo, "&Go to...\tCtrl-G", "Go to registry key");
- pMenuReg->Append(Menu_Expand, "&Expand", "Expand current key");
- pMenuReg->Append(Menu_Collapse, "&Collapse", "Collapse current key");
- pMenuReg->Append(Menu_Toggle, "&Toggle", "Toggle current key");
- pMenuReg->AppendSeparator();
- pMenuReg->Append(Menu_Refresh, "&Refresh", "Refresh the subtree");
- pMenuReg->AppendSeparator();
- pMenuReg->Append(Menu_Info, "&Properties","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;