예제 #1
0
파일: MainFrm.cpp 프로젝트: YZBoo/chromium
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);
}
예제 #2
0
void MainWindow::Initialize( )
{
    LayoutUI( );
    setWindowState( Qt::WindowMaximized );

    pTcpServerThread = QTcpServerThread::CreateInstance( );
}
예제 #3
0
파일: MainFrm.cpp 프로젝트: YZBoo/chromium
void CMainFrame::OnSize(UINT nType, CSize size)
{
  LayoutUI(size.cx, size.cy);
}