104 void AddMenu(
const char*,
const char*)
override;
111 void AddButton(
const char*,
const char*,
const char*)
override;
125 void SecondaryLoop(
const G4String&);
127 void ExitHelp()
const override;
129 G4bool CreateComponents(HWND);
130 G4bool ResizeComponents(HWND);
131 void ProcessTabKey();
132 void ProcessEscKey();
133 void ProcessEnterKey();
135 void ProcessDownKey();
139 G4String GetHelpTreeToolTips(HTREEITEM);
143 void HelpTreeDoubleClick(HTREEITEM);
145 G4bool SaveLogFile(LPCTSTR);
148 void DoOpenMacro(HWND);
149 void DoSaveViewer(HWND);
150 void DoSaveLog(HWND);
152 G4bool InitHelpTreeItems();
153 HTREEITEM AddItemToHelpTree(LPTSTR, HTREEITEM = TVI_ROOT);
155 LPSTR GetItemPath(HTREEITEM);
160 HWND fHWndMainWindow;
164 HWND fHWndComboEditor;
170 std::map<G4int, G4String, std::less<G4int>> commands;
172 static LRESULT CALLBACK MainWindowProc(HWND, UINT, WPARAM, LPARAM);
174 static LRESULT CALLBACK ComboEditorWindowProc(HWND, UINT, WPARAM, LPARAM);
178 std::vector<G4String> fHistory;