Posted 4 May 2020, 5:28 pm EST
Hi Experts,
I am using Spread 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()
etc , but the issue is not resolved.