Click here to Skip to main content
16,015,531 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have created an application with ODBC support & created a CRecordView class associated with a Crecordset class & Form View. The problem is that I am stuck to just Show that CRecordView derived class like CDialog::DoModal() function do.
Help me please to make this possible :((, & I will be grateful for a convincing answer.
Posted
Comments
#realJSOP 25-Dec-10 7:50am    
What exactly are you asking?

I am asking for method to show a CRecordView derived class like showing a CDialog derived class with DoModal() function.
 
Share this answer
 
I'm not sure what your question is really asking, but you may find the answer here[^].
 
Share this answer
 
Well,
The question is: How to implement
CWnd* CFrameWnd::CreateView(CCreateContext* pContext, UINT nID = AFX_IDW_PANE_FIRST); function, & then show it as modal ?

NB: My view class is CRecordView derived class.

Sorry for my bad english :(
 
Share this answer
 
v2
Comments
Richard MacCutchan 27-Dec-10 15:18pm    
You cannot use DoModal() on a view only on a dialog. Take a look at the link I gave you, there is information there to help you show CRecordView data.
Mr. Tomay 28-Dec-10 10:30am    
I heard about a trick of creating a CFrameWnd instance and call the function CFrameWnd::CreateView(); to create the CRecordView view, & then create a new CDialog instance, then set the parent windows of the newly created CRecordView to the newly created CDialog window, & finally show it calling CDialog::DoModal() function. But I don't know how to do it :Confused:

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900