- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
HWND m_hEdit=::GetWindow(this->m_hWnd,GW_CHILD);
TCHAR ClassName[200];
while(1&&m_hEdit)
{
::GetClassName(m_hEdit,ClassName,200);
if((ClassName[0]==_T('E')||ClassName[0]==_T('e'))&&(ClassName[1]==_T('D')||ClassName[1]==_T('d'))
&&(ClassName[2]==_T('I')||ClassName[2]==_T('i'))&&(ClassName[3]==_T('T')||ClassName[3]==_T('t')))
break;
m_hEdit=::GetWindow(m_hEdit,GW_HWNDNEXT);
}
if (m_hEdit) m_edit.SubclassWindow(m_hEdit);