本文整理汇总了C++中GetParentFrame函数的典型用法代码示例。如果您正苦于以下问题:C++ GetParentFrame函数的具体用法?C++ GetParentFrame怎么用?C++ GetParentFrame使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了GetParentFrame函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: DYNAMIC_DOWNCAST
void CFolderListPopupWnd::CloseMe(BOOL bKeep)
{
CMainFrame* pMainFrame = DYNAMIC_DOWNCAST(CMainFrame, GetParentFrame());
if (pMainFrame != NULL)
{
pMainFrame->OnCloseFoldersPopup(bKeep);
}
PostMessage(WM_CLOSE);
}
开发者ID:jetlive,项目名称:skiaming,代码行数:10,代码来源:FolderListPopupWnd.cpp
示例2: GetParentFrame
void CMainTestView::OnInitialUpdate()
{
CFormView::OnInitialUpdate();
GetParentFrame()->RecalcLayout();
ResizeParentToFit();
Sleep(1000);
OnFullScreenMode();
}
开发者ID:bblr001,项目名称:MVS,代码行数:10,代码来源:MainTestView.cpp
示例3: GetParentFrame
void 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,代码来源:DynamoRIOView.cpp
示例4: GetParentFrame
CFrameWnd* 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,代码来源:barcore.cpp
示例5: GetParentFrame
void 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,代码来源:EsmUsesDlg.cpp
示例6: GetParentFrame
void 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,代码来源:IE8TabBar.cpp
示例7: GetCurSel
void 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,代码来源:IE8TabBar.cpp
示例8: OnSetCursor
BOOL 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,代码来源:ChildView.cpp
示例9: SetCursor
BOOL 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,代码来源:PlayerChildView.cpp
示例10: OnBalanceTextDblClk
void 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,代码来源:PPagePlayback.cpp
示例11: ENSURE
BOOL 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,代码来源:snapview.cpp
示例12: LoadParamFile
void 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,代码来源:TestSetBatchView.cpp
示例13: GetParentFrame
void Cp02resourceView::OnInitialUpdate()
{
CFormView::OnInitialUpdate();
GetParentFrame()->RecalcLayout();
ResizeParentToFit();
////초기값 설정
check.SetCheck(1);
state3.SetCheck(2);
//xxx.SetCheck(1);
}
开发者ID:woongbini,项目名称:2015_second_semester,代码行数:11,代码来源:p02-resourceView.cpp
示例14: OnLButtonDown
void CNuGenDimensionView::OnLButtonDown(UINT nFlags, CPoint point)
{
CChildFrame* pFrame = static_cast<CChildFrame*>(GetParentFrame());
// Save the mouse left button down screen position
m_ScreenLeftButtonDownPoint = point;
SetCapture();
COpenGLView::OnLButtonDown(nFlags, point);
}
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:11,代码来源:NuGenDimensionView.cpp
示例15: OnNcPaint
void CChildView::OnNcPaint()
{
if(!((CMainFrame*)GetParentFrame())->IsFrameLessWindow())
{
CRect r;
GetWindowRect(r);
r.OffsetRect(-r.left, -r.top);
CWindowDC(this).Draw3dRect(&r, GetSysColor(COLOR_3DSHADOW), GetSysColor(COLOR_3DHILIGHT));
}
}
开发者ID:JERUKA9,项目名称:xy-VSFilter,代码行数:11,代码来源:ChildView.cpp
示例16: GetParentFrame
void CRimshotView::OnViewUniform()
{
CMenu *pMenu = GetParentFrame()->GetMenu();
m_Draw.bDrawUniform = !m_Draw.bDrawUniform;
if (pMenu)
pMenu->CheckMenuItem(ID_VIEW_UNIFORM, MF_BYCOMMAND | m_Draw.bDrawUniform ? MF_CHECKED : MF_UNCHECKED);
StopDrawing();
StartDrawing();
}
开发者ID:OngOngoing,项目名称:219351_homework,代码行数:11,代码来源:rimshotView.cpp
示例17: UNUSED_ALWAYS
LRESULT CControlBar::OnIdleUpdateCmdUI( WPARAM wParam, LPARAM lParam )
/********************************************************************/
{
UNUSED_ALWAYS( lParam );
CFrameWnd *pFrame = GetParentFrame();
if( pFrame != NULL ) {
OnUpdateCmdUI( pFrame, (BOOL)wParam );
}
return( 0L );
}
开发者ID:Ukusbobra,项目名称:open-watcom-v2,代码行数:11,代码来源:ctrlbar.cpp
示例18: GetParentFrame
void CChildFrame::OnInitMenuPopup(CMenu* pPopupMenu, UINT nIndex, BOOL bSysMenu)
{
CMDIChildWnd::OnInitMenuPopup(pPopupMenu, nIndex, bSysMenu);
// CG: The following block was inserted by 'Status Bar' component.
{
GetParentFrame()->PostMessage(WM_INITMENUPOPUP,
(WPARAM)pPopupMenu->GetSafeHmenu(), MAKELONG(nIndex, bSysMenu));
}
}
开发者ID:BlueAndi,项目名称:vscp_software,代码行数:11,代码来源:ChildFrm.cpp
示例19: AutoSaveFile
void CTestSetBatchView::AutoSaveFile()
{
((CMainFrame*)GetParentFrame())->FileSave( m_strCurFileName );
// 保存为文本文件
SaveTxtFile();
// 文件名在原来电路ID基础上增加1
UpdateData( TRUE );
m_strID.Format( "%08d", atoi(m_strID) + 1 );
m_strCurFileName = m_strID + ".atp";
UpdateData( FALSE );
}
开发者ID:Quenii,项目名称:adcevm,代码行数:11,代码来源:TestSetBatchView.cpp
示例20: EndCapture
void CSiriusView::OnCommandStop()
{
EndCapture();
g_bStarted = FALSE;
KillTimer(TIMER_ID); // kill statistics timer
CloseHandle(m_hAdapterMutex);
// update application title
CString sTitle;
sTitle.LoadString(AFX_IDS_APP_TITLE);
GetParentFrame()->SetWindowText(sTitle);
}
开发者ID:teknikqa,项目名称:sirius,代码行数:11,代码来源:SiriusView.cpp
注:本文中的GetParentFrame函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论