luckie
asked on
GetDocument() Question
CmfcDoc* CFrontEnd::GetDocument() const
{
// ASSERT(m_pDocument->IsKind Of(RUNTIME _CLASS(Cmf cDoc)));
return (CmfcDoc*)m_pDocument;
}
CmfcDoc* pDoc=(CmfcDoc*) GetDocument();
I wanna get some data items from CDoument class while not from CView class, how do I achieve this? Thanks
Jack
{
// ASSERT(m_pDocument->IsKind
return (CmfcDoc*)m_pDocument;
}
CmfcDoc* pDoc=(CmfcDoc*) GetDocument();
I wanna get some data items from CDoument class while not from CView class, how do I achieve this? Thanks
Jack
ASKER
Hi Alex,
Mine is not a CView-derived. Could I do the same with any generic classes?Thanks
Mine is not a CView-derived. Could I do the same with any generic classes?Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
void CFrontEnd::AnyFunction()
{
GetDocument()->SomeFunctio
}