They were incorrectly interpreted as mnemonics when drawing wxCheckListBox items, which didn't make sense and was inconsistent with the other ports and even wxListBox in wxMSW itself. It also affected wxRearrangeCtrl under MSW, which uses wxCheckListBox for its implementation. Closes #19201.
35 lines
995 B
C++
35 lines
995 B
C++
///////////////////////////////////////////////////////////////////////////////
|
|
// Name: wx/msw/ownerdrw.h
|
|
// Purpose: wxOwnerDrawn class
|
|
// Author: Marcin Malich
|
|
// Modified by:
|
|
// Created: 2009-09-22
|
|
// Copyright: (c) 2009 Marcin Malich <me@malcom.pl>
|
|
// Licence: wxWindows licence
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef _WX_OWNERDRW_H_
|
|
#define _WX_OWNERDRW_H_
|
|
|
|
#if wxUSE_OWNER_DRAWN
|
|
|
|
class WXDLLIMPEXP_CORE wxOwnerDrawn : public wxOwnerDrawnBase
|
|
{
|
|
public:
|
|
wxOwnerDrawn() {}
|
|
virtual ~wxOwnerDrawn() {}
|
|
|
|
virtual bool OnDrawItem(wxDC& dc, const wxRect& rc,
|
|
wxODAction act, wxODStatus stat) wxOVERRIDE;
|
|
|
|
protected:
|
|
// get the type of the text to draw in OnDrawItem(), by default is
|
|
// DST_PREFIXTEXT but can be overridden to return DST_TEXT when not using
|
|
// mnemonics
|
|
virtual int MSWGetTextType() const;
|
|
};
|
|
|
|
#endif // wxUSE_OWNER_DRAWN
|
|
|
|
#endif // _WX_OWNERDRW_H_
|