Refactor owner-drawing code.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 23 Jan 2010 13:21:12 +0000 (13:21 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 23 Jan 2010 13:21:12 +0000 (13:21 +0000)
commit98fbab9e7bf70ee8af44a78ea2a1d2cbb406880a
treecd3a3cf09a70274ccd8ff02bfd368b2de14f2383
parent937d5b6075db060b98daa0f0fadbaa528bc85554
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
26 files changed:
Makefile.in
build/bakefiles/files.bkl
build/msw/makefile.bcc
build/msw/makefile.gcc
build/msw/makefile.vc
build/msw/makefile.wat
build/msw/wx_core.dsp
build/msw/wx_vc7_core.vcproj
build/msw/wx_vc8_core.vcproj
build/msw/wx_vc9_core.vcproj
include/wx/msw/listbox.h
include/wx/msw/menuitem.h
include/wx/msw/ownerdrw.h [new file with mode: 0644]
include/wx/os2/menuitem.h
include/wx/os2/ownerdrw.h [new file with mode: 0644]
include/wx/ownerdrw.h
src/common/ownerdrwcmn.cpp [new file with mode: 0644]
src/msw/checklst.cpp
src/msw/listbox.cpp
src/msw/menu.cpp
src/msw/menuitem.cpp
src/msw/ownerdrw.cpp
src/os2/checklst.cpp
src/os2/listbox.cpp
src/os2/menuitem.cpp
src/os2/ownerdrw.cpp