Using CEditCtrl in CMFCTabCtrl

  • Thread starter Thread starter sgrm123
  • Start date Start date
S

sgrm123

Guest
Hi,

In a dialog I am displaying CMFCTabctrl using below code.

CDialog::OnInitDialog();
CRect rect;
GetClientRect(rect);
// Create tabs window:
m_ctrlTab.Create(Create(CMFCTabCtrl::STYLE_3D_ONENOTE, rect, this, 1, CMFCBaseTabCtrl::LOCATION_TOP);
m_ctrlTab.AutoDestroyWindow();


And I am attaching a child modeless dialog to tabctrl using below code. This dialog has a edit control which allows only numbers.

CSampleDlg* p = new CSampleDlg(&m_ctrlTab);
m_ctrlTab.AddTab(p,"DataBlock1");


When typing non digit letters in the edit control , we used to get unacceptable character tooltip.But on tooltip is getting displayed I am getting grey shade.when typing more than one non digit letter I am facing this problem.

1115062.png

How to resolve this problem?

Continue reading...
 
Back
Top