don't allow resizing non-resizeable columns in wxHeaderCtrl itself, no need to do it in wxDataViewCtrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57202 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -333,6 +333,15 @@ bool wxHeaderCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
|
||||
// ASCII and Unicode versions of this message
|
||||
case HDN_BEGINTRACKA:
|
||||
case HDN_BEGINTRACKW:
|
||||
// non-resizeable columns can't be resized no matter what, don't
|
||||
// even generate any events for them
|
||||
if ( !GetColumn(idx).IsResizeable() )
|
||||
{
|
||||
*result = TRUE;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
evtType = wxEVT_COMMAND_HEADER_BEGIN_RESIZE;
|
||||
// fall through
|
||||
|
||||
|
Reference in New Issue
Block a user