owner drawn buttons change appearance when double clicked

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7372 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2000-05-09 21:18:19 +00:00
parent a58b3aa909
commit c17cc4a96f

View File

@@ -280,16 +280,14 @@ long wxButton::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam)
// let the default processign take place too // let the default processign take place too
} }
// VZ: I don't remember any more why was this needed but everything seems
// to work just fine without this code and it prevents LDCLICK events
// from being generated, so I will probably remoe it completely soon
#if 0
else if ( nMsg == WM_LBUTTONDBLCLK ) else if ( nMsg == WM_LBUTTONDBLCLK )
{ {
// trick the base class into thinking that this was just a click // emulate a click event to force an owner-drawn button to change its
nMsg = WM_LBUTTONDOWN; // appearance - without this, it won't do it
(void)wxControl::MSWWindowProc(WM_LBUTTONDOWN, wParam, lParam);
// and conitnue with processing the message normally as well
} }
#endif // 0
// let the base class do all real processing // let the base class do all real processing
return wxControl::MSWWindowProc(nMsg, wParam, lParam); return wxControl::MSWWindowProc(nMsg, wParam, lParam);