Hi,
In my MFC Application, I have placed a SpreadSheet control, and need to access the same control from my view class, how can we access the same, basically my application is Single Document Template,
I tried to access control, CSpreadSheet m_Spread;
a) CFrameWnd *pFrm = (CFrameWnd *) (AfxGetApp() -> m_pMainWnd)
pFrm->
GetActiveView();
Though I could not attach the spread control from below statement,
m_PreView.SetHWndSpread(pFrm->m_Spread.GetHWnd()); errors given below,
Error 1 error C2039:
Error 2 error C2228: left of
Error 3 error C2039:
Error 4 error C2039:
However, it successfully embeds the Spreadsheet in case of Dialog App.,
CPrintPreviewDlg * parentWnd = (CPrintPreviewDlg *) GetParent();
m_Preview.SetHwndSpread(parentWnd->m_Spread.GetHwnd()); without errors.
I am trying to convert Dialog based App (Spreadsheet) to SDI FormView based App(Spreadsheet).,
I am using VS2008 IDE, Windows 7 O/S , Spreadsheet (Far point tech)
using FormView has base class in my Doc-View app.Thanks in Advance...
With Regards,
VishalK_92