minor clean up

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11435 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2001-08-22 14:24:23 +00:00
parent ebb987b77b
commit b6e5eaa597

View File

@ -162,10 +162,10 @@ bool wxControl::MSWOnNotify(int idCtrl,
WXLPARAM lParam,
WXLPARAM* result)
{
wxCommandEvent event(wxEVT_NULL, m_windowId);
wxEventType eventType = wxEVT_NULL;
NMHDR *hdr1 = (NMHDR*) lParam;
switch ( hdr1->code )
NMHDR *hdr = (NMHDR*) lParam;
switch ( hdr->code )
{
case NM_CLICK:
eventType = wxEVT_COMMAND_LEFT_CLICK;
@ -199,6 +199,7 @@ bool wxControl::MSWOnNotify(int idCtrl,
return wxWindow::MSWOnNotify(idCtrl, lParam, result);
}
wxCommandEvent event(wxEVT_NULL, m_windowId);
event.SetEventType(eventType);
event.SetEventObject(this);