MainFrame::MainFrame(void) : wxFrame(NULL, wxID_ANY, _("Omega Online Registry Editor")), m_fileHistory(8) { wxIconBundle icon_bundle; icon_bundle.AddIcon(wxIcon(icon_large)); icon_bundle.AddIcon(wxIcon(icon_small)); SetIcons(icon_bundle); m_bKeys = false; m_bValues = false; m_bData = false; m_bMatchAll = false; m_bIgnoreCase = false; CreateChildWindows(); CreateMenus(); }
BOOL ControlCreate( IN INT x, IN INT y, IN INT width, IN INT height ) { BOOL result; gControlWnd = CreateWindow( szControlClassName, "CdControlWindow", WS_CHILD | WS_VISIBLE | WS_CLIPCHILDREN, x, y, width, height, gMainWnd, (HMENU)ID_CHILD_CONTROL, (HINSTANCE)gInstance, NULL ); if (!gControlWnd) return FALSE; // // Create children of Control window // // // Create LED window // gLEDWnd = CreateWindow( szLEDClassName, "[00] 00:00", WS_CHILD | WS_VISIBLE, CONTROL_LED_X, CONTROL_LED_Y, CONTROL_LED_W, CONTROL_LED_H, gControlWnd, (HMENU)0, (HINSTANCE)gInstance, NULL ); if (!gLEDWnd) { DestroyWindow( gControlWnd ); gControlWnd = NULL; return FALSE; } // // Create children of Control window (Play,pause,etc) // result = CreateChildWindows(ID_CHILD_CONTROL,gControlWnd); return result; }
BOOL ToolBarCreate( IN INT x, IN INT y, IN INT width, IN INT height ) /*++ Routine Description: This routine creates the ToolBar section and child controls at the given coordinates, and for the given width and height. Arguments: x - x coord (in gMainWnd coords) of toolbar y - y coord (in gMainWnd coords) of toolbar width - width of toolbar height - height of toolbar Return Value: TRUE if success, FALSE if not --*/ { BOOL result; gToolBarWnd = CreateWindow( szToolBarClassName, "CdToolBarWindow", WS_CHILD | WS_VISIBLE | WS_CLIPCHILDREN, x, y, width, height, gMainWnd, (HMENU)ID_CHILD_TOOLBAR, (HINSTANCE)gInstance, NULL ); if (!gToolBarWnd) return FALSE; // // Create children of ToolBar window (tool buttons) // result = CreateChildWindows(ID_CHILD_TOOLBAR,gToolBarWnd); return result; }