git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15670
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
wxASSERT( (textControlClass->IsKindOf(CLASSINFO(wxTextCtrl))) );
{
wxASSERT( (textControlClass->IsKindOf(CLASSINFO(wxTextCtrl))) );
- // VS: ListView_EditLabel requires that the list has focus.
+ // ListView_EditLabel requires that the list has focus.
- HWND hWnd = (HWND) ListView_EditLabel(GetHwnd(), item);
+ WXHWND hWnd = (WXHWND) ListView_EditLabel(GetHwnd(), item);
if (m_textCtrl)
{
m_textCtrl->SetHWND(0);
m_textCtrl->UnsubclassWin();
delete m_textCtrl;
if (m_textCtrl)
{
m_textCtrl->SetHWND(0);
m_textCtrl->UnsubclassWin();
delete m_textCtrl;
}
m_textCtrl = (wxTextCtrl*) textControlClass->CreateObject();
}
m_textCtrl = (wxTextCtrl*) textControlClass->CreateObject();
- m_textCtrl->SetHWND((WXHWND) hWnd);
- m_textCtrl->SubclassWin((WXHWND) hWnd);
+ m_textCtrl->SetHWND(hWnd);
+ m_textCtrl->SubclassWin(hWnd);
+ m_textCtrl->SetParent(this);