Originally posted by: alan93
Couldn't run it in Release mode at all.
Application Error - The memory could not be "written"
ReplyOriginally posted by: Wadigzon
Do this.
make the Release version of the project,
then right/left/mid click on the view you
just created with this method.
and you'll see... it crashes !!!
looks like this is not a safe approach.
That is a result of default message handlers trying to tell the document about the change. Please Set a dummy document pointer to the view class to solve this issue. I have already replied to similar post in another comment
ReplyOriginally posted by: Mohamed Mustafa Z
void CCVwindlgDlg::OnSize(UINT nType, int cx, int cy)
Hope this helps!
1.Add the WM_SIZE message handler to your dialog,
2.Add the following code to that handler.
{
CDialog::OnSize(nType, cx, cy);
CRect ClientRect;
GetClientRect(&ClientRect);
m_pView->MoveWindow(ClientRect);
//m_pView is assumed to be a memeber of dlg class
}
Originally posted by: zwl_eagle
When the dialog become maximum style,the view can't resize with it,pls tell me how to resize a view in a dialog?thanks!
ReplyOriginally posted by: Rikcuo Akira
http://www.codeguru.com/dialog/vwindlg.html
I See the article about "Creating a View in Dialog (An easy way)".
Rikcuo Akira(Live in Taiwan)
Creating a View in Dialog (An easy way).
In this Project , You Use MFC.
Now I Create A Win32 Application Project,So How do I do?
How Do I Create a Dialog that a html page in which in Win32 App Project widthout MFC??
Could you Tell me?
I need you help....
Emergency! SOS!
Originally posted by: AVB
in Windows XP does not work in Release
ReplyOriginally posted by: Jim
I have created a scollview in a dialog -- no problem.
Please help with accessing the CDocument associated with the view.
I have casted properly ( I get no asserts ); however, at runtime, I get access violation. Any help would be greatly appreciated.
Jim Faughnan
Reply
Originally posted by: brightfire74
Hi!~~
This method work very nicely, thank you.
But I need to know how I do process when is ended.
for example, handling view and doc, memory cancellation.
Please tell me about it..
Good bye....
Originally posted by: Jibesh
How can i avoid this or
Jibesh....
When i tried to use a CFormView type view throws an exception in Creating the view.
Through continus debugging i found cause exception ie "Invalid DialogTemplate " or the Dialog Template name is null
How can i use CFormView istead of using CHtmlView
Am trying the above in my ActiveX control , Does it make any problem..
Originally posted by: Sam Hobbs
That is not a view in a dialog, right? That is creating a view in a frame window that is positioned over a dialog, right? The dialog is not a parent of the view or of the frame that the view is in, correct?
If it were me, I would create a frame window also, except I would not bother to create a dialog. See my "PopUp Frame Window" sample at:
http://simplesamples.info/PopUpFrameWindow.asp