Fix calculation of the margins for owner-drawn menu items.
Take into account the widths of the bitmaps properly. Closes #11268. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63222 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -120,6 +120,14 @@ private:
|
||||
wxAcceleratorArray m_accels;
|
||||
#endif // wxUSE_ACCEL
|
||||
|
||||
#if wxUSE_OWNER_DRAWN
|
||||
// true if the menu has any ownerdrawn items
|
||||
bool m_ownerDrawn;
|
||||
|
||||
// the max width of menu items bitmaps
|
||||
int m_maxBitmapWidth;
|
||||
#endif // wxUSE_OWNER_DRAWN
|
||||
|
||||
DECLARE_DYNAMIC_CLASS_NO_COPY(wxMenu)
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user