Clicking on view in release mode causes the program to crash. Looks like the program crahses in OnMouseActivate. any solutions?
ReplyOriginally posted by: Rajesh
ScreenToClient(&rect);
CString strMyClass = AfxRegisterWndClass( CS_VREDRAW | CS_HREDRAW, ::LoadCursor(NULL, IDC_ARROW), (HBRUSH) ::GetStockObject(BLACK_BRUSH), ::LoadIcon(NULL, IDI_APPLICATION));
CWnd* pWnd = new CWnd;
CRect rect;
m_view->GetWindowRect(&rect);
//m_view is static control on dialog.
pWnd->Create( strMyClass, "", WS_CHILD | WS_VISIBLE, rect, this, 1234);
Originally posted by: Saleem Anwar
i have controls on the dailog based application and i want to print the dialog as a whole. plz someone help me.
Originally posted by: mihee
From Dialog , I made Split Window and composed of view separately.
I have a trouble when i tried to call the above dialog from mainframe..
In the debug mode, i solved it by overloading the OnMouseActivate event.
But it was crashed in the Release mode.
So, If you have a solution about what I said, please send me your answer.
Thank your for your consideration.
Originally posted by: Z Mohamed Mustafa
/**
Note: there is a sample available in the following url:
CCreateContext pContext;
CWnd* pFrameWnd = this;
pContext.m_pCurrentDoc = new CMyDocument;
pContext.m_pNewViewClass = RUNTIME_CLASS(CMyVw);
CMyVw *pView =
(CMyVw *)((CFrameWnd*)pFrameWnd)->CreateView(&pContext);
pView->ShowWindow(SW_NORMAL);
CRect rectWindow;
GetWindowRect(rectWindow);
rectWindow.right += 15;
rectWindow.top -= 10;
pView->MoveWindow(rectWindow);
* Steps:
* 1. Create a view class (better to use class wizard)
* 2. Create a document class (better to use class wizard)
* 3. Add the above code snippet to your InitDialog
*
* CMyVw - any CView derived class
* CMyDocument - any CDocument derived class
*
*/
Originally posted by: Thomas Schuster
Just look up this ...
http://www.codeproject.com/useritems/View_in_Dialog.asp
Originally posted by: Hugo
I've followed Jean-Claude`s example using a CHtmlView and it works fine, but I need to print the view now. How do I print the web pages displayed in my view?
Thanks in advance
Hugo
Originally posted by: John
Has any had tried inserting RichEditCtrl in Dialog based
app? I would like to display .rtf content in a small
RichEditCtrl window in the app dialog.
Originally posted by: sameer
is it possible to add the controls of a parent dialog to another dialog on switching at run time so that the controls behave as part of both the dialogs.
pls help
sameer
ReplyOriginally posted by: Rejeesh.T.S
The sample you have given is a doc/vew application.
Is it possible to create a view in a Dialog based application?