void CMainFrame::IniUI() { RECT rcClient; GetClientRect(&rcClient); RECT rcAddress = rcClient; RECT rcTab = rcClient; RECT rcView = rcClient; m_addressbar = new CAddressBar; m_addressbar->m_main_frame = m_hWnd; m_addressbar->Create(m_hWnd); m_tab = new CSimpleTab; m_tab->m_main_frame = m_hWnd; m_tab->Create(m_hWnd); m_clientview = new CSimpleClient; m_clientview->Create(m_hWnd); LayoutUI(rcClient.right - rcClient.left, rcClient.bottom - rcClient.top); m_addressbar->ShowWindow(SW_SHOW); m_tab->ShowWindow(SW_SHOW); m_clientview->ShowWindow(SW_SHOW); }
void MainWindow::Initialize( ) { LayoutUI( ); setWindowState( Qt::WindowMaximized ); pTcpServerThread = QTcpServerThread::CreateInstance( ); }
void CMainFrame::OnSize(UINT nType, CSize size) { LayoutUI(size.cx, size.cy); }