15,980
社区成员




if (!m_CYBDockablePane.Create(
_T(""),
this,
CRect(0, 0, 10, 25),
FALSE,
IDD_DIALOG_FORMVIEW,
WS_CHILD | WS_VISIBLE | CBRS_BOTTOM | CBRS_HIDE_INPLACE| AFX_CBRS_FLOAT , AFX_CBRS_REGULAR_TABS, AFX_CBRS_CLOSE))
{
TRACE0("未能创建输出窗口/n");
return FALSE;
}
DockPane(&m_CYBDockablePane);
BOOL CYBBrowserApp::PreTranslateMessage(MSG* pMsg)
{
if(VK_F11 == pMsg->wParam && WM_KEYDOWN == pMsg->message)
{
if(!iShow)
{
iShow = 1;
((CMainFrame*)AfxGetApp()->m_pMainWnd)->m_CYBDockablePane.SetAutoHideMode(true, CBRS_ALIGN_BOTTOM);
((CMainFrame*)AfxGetApp()->m_pMainWnd)->m_CYBDockablePane.ShowPane(TRUE,FALSE,TRUE);
}
else
{
iShow = 0;
((CMainFrame*)AfxGetApp()->m_pMainWnd)->m_CYBDockablePane.SetAutoHideMode(true, CBRS_ALIGN_BOTTOM);
((CMainFrame*)AfxGetApp()->m_pMainWnd)->m_CYBDockablePane.ShowPane(FALSE,FALSE,TRUE);
}
}
return CWinAppEx::PreTranslateMessage(pMsg);
}