Code: Select all
&= ~()
&=
|=
Many thanks and greatly appreciated.
Code: Select all
&= ~()
&=
|=
I find that a little hard to believe.I have Google'd and not found an answer.
Code: Select all
style &= ~(wxTB_HORIZONTAL | wxTB_VERTICAL | wxTB_BOTTOM | wxTB_RIGHT | wxTB_TOP | wxTB_HORZ_LAYOUT);
switch (_toolbarPosition)
{
case TOOLBAR_LEFT: {
style |= wxTB_LEFT;
} break;
case TOOLBAR_TOP: {
style |= wxTB_TOP;
} break;
case TOOLBAR_RIGHT: {
style |= wxTB_RIGHT;
} break;
case TOOLBAR_BOTTOM: {
style |= wxTB_BOTTOM;
} break;
}
if (_showTooltips)
{
style &= ~(wxTB_NO_TOOLTIPS);
}
else
{
style |= wxTB_NO_TOOLTIPS;
}
if (style & wxTB_TEXT && !(style & wxTB_NOICONS) && _horizontalText)
{
style |= wxTB_HORZ_LAYOUT;
}
Code: Select all
wxTB_HORIZONTAL | wxTB_VERTICAL | wxTB_BOTTOM | wxTB_RIGHT | wxTB_TOP | wxTB_HORZ_LAYOUT
Code: Select all
wxTB_HORIZONTAL = 0x0004 = binary 0000.0000.0000.0100
wxTB_VERTICAL = 0x0008 = binary 0000.0000.0000.1000
Code: Select all
style |= wxTB_HORIZONTAL;
Code: Select all
style &= ~(wxTB_HORIZONTAL);
Code: Select all
style &= ~(wxTB_HORIZONTAL | wxTB_VERTICAL | wxTB_BOTTOM | wxTB_RIGHT | wxTB_TOP | wxTB_HORZ_LAYOUT);
Just out of curiosity, why?I switched from QT to wxWidgets