Initialize padding while creating a toolbar.

If padding value (stored in m_toolPacking) has been assigned prior to creating the toolbar (with SetToolPacking) then apply this padding to just created toolbar.
Otherwise initialize this variable with current padding retrieved from the toolbar to let GetToolPacking return proper padding value.
Implemented new method MSWSetPadding() to set padding for native toolbar.
This commit is contained in:
Artur Wieczorek
2015-12-14 21:50:27 +01:00
parent dd29ecf840
commit 0a917b86b7
2 changed files with 24 additions and 0 deletions

View File

@@ -136,6 +136,8 @@ protected:
// get the Windows toolbar style of this control
long GetMSWToolbarStyle() const;
// set native toolbar padding
void MSWSetPadding(WXWORD padding);
// the big bitmap containing all bitmaps of the toolbar buttons
WXHBITMAP m_hBitmap;