Posted 26 April 2020, 1:51 am EST
Hi Experts,
I am using Spread 6 control(Active x control) in my MFC (VC++) MDI application.
In the CMyFormView:: OnInitialUpdate()
{
m_Spread.SetMaxCols(3); m_Spread.SetText(0,0,CComVariant(_T("Sr No")); m_Spread.SetText(1,0,CComVariant(_T("Name")); m_Spread.SetText(2,0,CComVariant(_T("Department")); m_Spread.SetText(3,0,CComVariant(_T("Salary"));
}
When the specified form display the contents are not align properly, but if I minimize the Form and restore it, the contents display properly.
So I guess , it is related to some repaint o resize issue?
I had tried the following:-
Inavalidate()
Refresh()
ets , but the issue is not resolved.
Please help me to resolve the issue asap.