1. wxGrid row can't be resized to less than minimal height
2. memory leaks fixed in wxHashTableLong 3. and in wxGrid 4. changed newgrid sample to use char buffers 5. fixed double clicking owner-drawn buttons 6. compilation fix in enhmeta.cpp for !wxUSE_DND 7. bug introduced earlier today in wxGridCellAttr::GetEditor() fixed 8. bool renderer/editor now look as good as I may ever make them look good under MSW git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6391 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -237,8 +237,9 @@ bool wxButton::MSWCommand(WXUINT param, WXWORD id)
|
||||
bool processed = FALSE;
|
||||
switch ( param )
|
||||
{
|
||||
case 1: // means that the message came from an accelerator
|
||||
case BN_CLICKED:
|
||||
case 1: // message came from an accelerator
|
||||
case BN_CLICKED: // normal buttons send this
|
||||
case BN_DOUBLECLICKED: // owner-drawn ones also send this
|
||||
processed = SendClickEvent();
|
||||
break;
|
||||
}
|
||||
@@ -256,6 +257,11 @@ long wxButton::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam)
|
||||
|
||||
// let the default processign take place too
|
||||
}
|
||||
else if ( nMsg == WM_LBUTTONDBLCLK )
|
||||
{
|
||||
// trick the base class into thinking that this was just a click
|
||||
nMsg = WM_LBUTTONDOWN;
|
||||
}
|
||||
|
||||
// let the base class do all real processing
|
||||
return wxControl::MSWWindowProc(nMsg, wParam, lParam);
|
||||
|
Reference in New Issue
Block a user