S
sgrm123
Guest
Hi,
In my dialog I have 2 scrollviews.
I am creating two views using below code
CWnd* pFrameWnd = this;
m_pContext.m_pNewViewClass = RUNTIME_CLASS(CImageScrollView);
m_pSrcView =(CImageScrollView *) ((CFrameWnd*)pFrameWnd)->CreateView(&m_pContext);
m_pSrcView->pBmpFormatDlg = this;
m_pSrcView->InitImg(hImage);
m_pSrcView->OnInitialUpdate();
m_pSrcView->MoveWindow(rc);
m_pDestView =(CImageScrollView *) ((CFrameWnd*)pFrameWnd)->CreateView(&m_pContext);
This is the function declarion of CreateView
CWnd* CreateView(CCreateContext* pContext, UINT nID = AFX_IDW_PANE_FIRST);
Can I use same id for both views?
Continue reading...
In my dialog I have 2 scrollviews.
I am creating two views using below code
CWnd* pFrameWnd = this;
m_pContext.m_pNewViewClass = RUNTIME_CLASS(CImageScrollView);
m_pSrcView =(CImageScrollView *) ((CFrameWnd*)pFrameWnd)->CreateView(&m_pContext);
m_pSrcView->pBmpFormatDlg = this;
m_pSrcView->InitImg(hImage);
m_pSrcView->OnInitialUpdate();
m_pSrcView->MoveWindow(rc);
m_pDestView =(CImageScrollView *) ((CFrameWnd*)pFrameWnd)->CreateView(&m_pContext);
This is the function declarion of CreateView
CWnd* CreateView(CCreateContext* pContext, UINT nID = AFX_IDW_PANE_FIRST);
Can I use same id for both views?
Continue reading...