这篇教程C++ GetParentFrame函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中GetParentFrame函数的典型用法代码示例。如果您正苦于以下问题:C++ GetParentFrame函数的具体用法?C++ GetParentFrame怎么用?C++ GetParentFrame使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了GetParentFrame函数的28个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: DYNAMIC_DOWNCASTvoid CFolderListPopupWnd::CloseMe(BOOL bKeep){ CMainFrame* pMainFrame = DYNAMIC_DOWNCAST(CMainFrame, GetParentFrame()); if (pMainFrame != NULL) { pMainFrame->OnCloseFoldersPopup(bKeep); } PostMessage(WM_CLOSE);}
开发者ID:jetlive,项目名称:skiaming,代码行数:10,
示例2: GetParentFramevoid CMainTestView::OnInitialUpdate(){ CFormView::OnInitialUpdate(); GetParentFrame()->RecalcLayout(); ResizeParentToFit(); Sleep(1000); OnFullScreenMode();}
开发者ID:bblr001,项目名称:MVS,代码行数:10,
示例3: GetParentFramevoid CDynamoRIOView::OnInitialUpdate(){ CFormView::OnInitialUpdate(); GetParentFrame()->RecalcLayout(); ResizeParentToFit(); OnDropdownList(); // 100 flashes too much with long stats list // ::SetTimer(NULL, NULL, 100, TimerProc); ::SetTimer(NULL, NULL, 200, TimerProc);}
开发者ID:bl4ckic3,项目名称:DynamoRIO-ARM,代码行数:10,
示例4: GetParentFrameCFrameWnd* CControlBar::GetDockingFrame() const{ CFrameWnd* pFrameWnd = GetParentFrame(); if (pFrameWnd == NULL) pFrameWnd = m_pDockSite; ASSERT(pFrameWnd != NULL); ASSERT(pFrameWnd->IsKindOf(RUNTIME_CLASS(CFrameWnd))); return pFrameWnd;}
开发者ID:rickerliang,项目名称:OpenNT,代码行数:10,
示例5: GetParentFramevoid CEsmUsesDlg::UpdateTitle (void) { CString Buffer; if (m_pRecInfo != NULL) Buffer.Format(_T("%s -- Uses -- %s"), m_pDlgHandler->GetDocument()->GetTitle(), m_pRecInfo->pRecord->GetID()); else Buffer.Format(_T("%s -- Uses --"), m_pDlgHandler->GetDocument()->GetTitle()); GetParentFrame()->SetWindowText(Buffer); }
开发者ID:Purr4me,项目名称:TES5Edit-GoogleCode,代码行数:10,
示例6: GetParentFramevoid CIETabBar::OnCLoseTab(int nIndex){ PAGEID nPageIDRemoved = (PAGEID)IndexToPageID(nIndex); CFrameWnd *pParentFrame = GetParentFrame(); if (pParentFrame) { pParentFrame->PostMessage( WM_TAB_CLOSE,nPageIDRemoved,0); }}
开发者ID:gaozan198912,项目名称:myproject,代码行数:10,
示例7: GetCurSelvoid CIETabBar::OnTcnSelchange(NMHDR *pNMHDR, LRESULT *pResult){ int nIndex = GetCurSel(); int nCount = GetItemCount(); if (nIndex >= 0 && nIndex < nCount) { GetParentFrame()->PostMessage(WM_TAB_SEL_CHANGE,(PAGEID)IndexToPageID(nIndex),0); } *pResult = 0;}
开发者ID:gaozan198912,项目名称:myproject,代码行数:10,
示例8: OnSetCursorBOOL CChildView::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message){ if(((CMainFrame*)GetParentFrame())->m_fHideCursor) { SetCursor(NULL); return TRUE; } return CWnd::OnSetCursor(pWnd, nHitTest, message);}
开发者ID:JERUKA9,项目名称:xy-VSFilter,代码行数:10,
示例9: SetCursorBOOL CChildView::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message){ if (((CMainFrame*)GetParentFrame())->m_fHideCursor) { SetCursor(NULL); return TRUE; } if (((CMainFrame*)GetParentFrame())->IsSomethingLoaded() && (nHitTest == HTCLIENT)) { if (((CMainFrame*)GetParentFrame())->GetPlaybackMode() == PM_DVD) { return FALSE; } ::SetCursor(AfxGetApp()->LoadStandardCursor(IDC_ARROW)); return TRUE; } return CWnd::OnSetCursor(pWnd, nHitTest, message);}
开发者ID:avdbg,项目名称:MPC-BE,代码行数:19,
示例10: OnBalanceTextDblClkvoid CPPagePlayback::OnBalanceTextDblClk(){ // double click on text "Balance" resets the balance to zero m_nBalance = 0; m_balancectrl.SetPos(m_nBalance); ((CMainFrame*)GetParentFrame())->SetBalance(m_nBalance); SetModified();}
开发者ID:Tphive,项目名称:mpc-be,代码行数:10,
示例11: ENSUREBOOL CSnapView::Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext){ ENSURE(pParentWnd != NULL); ASSERT_KINDOF(CFrameWnd, pParentWnd); if (!CWnd::Create(lpszClassName, lpszWindowName, dwStyle | WS_CLIPCHILDREN, rect, pParentWnd, nID, pContext)) { return FALSE; } // add your pages here! m_pPageBkfst = new CBkfstPage; m_pPageLunch = new CLunchPage; m_pPageDinner = new CDinnerPage; // create the window object m_pPropSheet = new CSnapPropertySheet; m_pPropSheet->AddPage(m_pPageBkfst); m_pPropSheet->AddPage(m_pPageLunch); m_pPropSheet->AddPage(m_pPageDinner); // create a modeless property page if (!m_pPropSheet->Create(this, DS_CONTEXTHELP | DS_SETFONT | WS_CHILD | WS_VISIBLE)) { DestroyWindow(); return FALSE; } m_pPropSheet->SetWindowPos(NULL, 0, 0, 0, 0, SWP_NOACTIVATE | SWP_NOZORDER | SWP_NOSIZE); // we use the style from the template - but make sure that // the WS_BORDER bit is correct. // the WS_BORDER bit will be whatever is in dwRequestedStyle m_pPropSheet->ModifyStyle(WS_BORDER|WS_CAPTION, dwStyle & (WS_BORDER|WS_CAPTION)); // Force the size requested. // Fake a call to OnSize()--it would have been called automatically // if this were using the base class implementation of Create(). CFrameWnd* pParentFrame = GetParentFrame(); CRect rectSize; m_pPropSheet->GetWindowRect(rectSize); pParentFrame->CalcWindowRect(rectSize); OnSize(SIZE_RESTORED, rectSize.Width(), rectSize.Height()); return TRUE;}
开发者ID:jetlive,项目名称:skiaming,代码行数:55,
示例12: LoadParamFilevoid CTestSetBatchView::Test20M(){ CAdcTestPlatDoc* pDoc = (CAdcTestPlatDoc*)GetDocument(); if ( pDoc != NULL ) { DWORD dwCmd = (CMD_RESET << 16); pDoc->SendCommand( dwCmd ); dwCmd = (CMD_MODE << 16) + (0 << 8) //m_nStart + (0 << 6) //m_nM0 + (1 << 5) //m_nChanConfigCtrl + (0 << 4) //m_nDataOutModelSel lvds + (1 << 3) //m_nParaSerSel + (1 << 1) //m_nLvdsAck + 0; //m_nTest pDoc->SendCommand( dwCmd ); // 自动载入配置文件param_20m.dat, ????? LoadParamFile( m_str20MFileName ); dwCmd = (CMD_MODE << 16) + (1 << 8) //m_nStart + (1 << 6) //m_nM0 + (1 << 5) //m_nChanConfigCtrl + (0 << 4) //m_nDataOutModelSel lvds + (1 << 3) //m_nParaSerSel + (1 << 1) //m_nLvdsAck + 0; //m_nTest pDoc->SendCommand( dwCmd ); // r值的作用80/20/2 SetR( 2 ); // 设置alg显示 CMainFrame* pFrame = (CMainFrame*)GetParentFrame(); if ( pFrame != NULL ) { pFrame->m_bTestADCBatch = TRUE; pFrame->m_bTestADC = FALSE; pFrame->m_bTestAlg = TRUE; } // 选择alg模式 pDoc->m_nTestModeSel = 6; // 上次的采集完成后,可以建立新线程,采集和计算 if ( pDoc->m_bTestComp ) { // 第二个参数不能像doc里面直接使用this, 切记 AfxBeginThread( pDoc->TestAndCalc, pDoc ); } // 打开定时器1, 每隔2s采集一次 SetTimer( 1, 2000, NULL ); }}
开发者ID:Quenii,项目名称:adcevm,代码行数:55,
|