Then perhaps you give me an alternative for this issue : I need to have ComboBoxInfo.hwndList handle for the follow function :
void CComboBoxExt::PreSubclassWindow()
{
// TODO: Add your specialized code here and/or call the base class
CComboBox::PreSubclassWindow();
COMBOBOXINFO ComboBoxInfo;
ComboBoxInfo.cbSize = sizeof(ComboBoxInfo);
GetComboBoxInfo(m\_hWnd,&ComboBoxInfo);
// m_Edit.SubclassWindow(ComboBoxInfo.hwndEdit);
m_List.SubclassWindow(ComboBoxInfo.hwndList);
SetProp(ComboBoxInfo.hwndList, WndPropertyComboBoxEx, this);
fNextListProc = (WNDPROC)SetWindowLong(ComboBoxInfo.hwndList, GWL_WNDPROC, (LONG)WinProcForList); // <- here I need ComboBoxInfo.hwndList
}
and implementation of WinProcForList is here :
LRESULT CComboBoxExt::WinProcForList(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
CComboBoxExt* pInstance = (CComboBoxExt*)GetProp(hWnd,WndPropertyComboBoxEx);
ASSERT(pInstance != NULL);
if(msg == LB\_FINDSTRING)
{
TRACE("Replacing LB\_FINDSTRING with LB\_FINDSTRINGEXACT when looking for: \\"%s\\"\\n", (LPCTSTR)lParam);
msg = LB\_FINDSTRINGEXACT;
}
return CallWindowProc(pInstance->fNextListProc, hWnd, msg, wParam, lParam);
}
any help or hint I will very appreciated !