Refactor owner-drawing code.
Only keep common code in the base class and extract all menu/listbox-specific stuff into derived classes. This makes the code cleaner and more maintainable but introduces some problems in wxCheckListBox appearance which will be fixed by the next patch. Closes #10635. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63220 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
29
include/wx/msw/ownerdrw.h
Normal file
29
include/wx/msw/ownerdrw.h
Normal file
@@ -0,0 +1,29 @@
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Name: wx/msw/ownerdrw.h
|
||||
// Purpose: wxOwnerDrawn class
|
||||
// Author: Marcin Malich
|
||||
// Modified by:
|
||||
// Created: 2009-09-22
|
||||
// RCS-ID: $Id$
|
||||
// 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);
|
||||
};
|
||||
|
||||
#endif // wxUSE_OWNER_DRAWN
|
||||
|
||||
#endif // _WX_OWNERDRW_H_
|
Reference in New Issue
Block a user