ADITYA RAO
asked on
Focus not getting shifted out of editbox
In one of our project in MFC,VC++ 6.0 ,on change of editbox text message gets send for some functionality.
But problem is that focus gets shift out from that editbox,which is undesirable as user has to again click in edit box
I called setfocus ,but its not working please help.
But problem is that focus gets shift out from that editbox,which is undesirable as user has to again click in edit box
I called setfocus ,but its not working please help.
void CReport1::OnChangeEdit9()
{
int nnn = GetDlgItemInt(IDC_EDIT9);
if(m_Sample_ID!=nnn)
{
if(nnn==0)return;
m_Sample_ID = nnn;
m_pReport_ID_Changed2->PostMessage(WM_MY2_MESSAGE,m_Sample_ID);
}
GetDlgItem(IDC_EDIT9)->SetFocus(); //This line not working
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER