6. Widget flags

Table 2.7. Widget flags

Used byConstantDescription
MT_SCROLLBAR and MT_SCROLLBAR_HANDLEMT_SCROLLBAR_UNSCROLLABLESet when the scrollbar is unscrollable. This means that scrollbar handle cannot change it's position (it's minimal value is the same as the maximal one).
MT_SCROLLBARMT_SCROLLBAR_SUBPAGE_ACTIVESet when upper track highlight is visible.
MT_SCROLLBAR_ADDPAGE_ACTIVESet when bottom track highlight is visible.
MT_NOTEBOOK_TABMT_NOTEBOOK_FIRST_VISIBLE_TABSet when the tab is on the left ending of tab bar. Usually this is the first visible tab, in QT first tab. This is used to draw the top-left part of border of MT_NOTEBOOK.
MT_NOTEBOOK_FIRST_TABSet when the tab is first.
MT_NOTEBOOK_LAST_TABSet when the tab is last.
MT_SPINBUTTON_UP and MT_SPINBUTTON_DOWNMT_SPINBUTTON_HOVERSet when the mouse is anywhere on top of the whole MT_SPINBUTTON widget.
MT_TOOLBAR_ITEM_DROPDOWNMT_TOOLBAR_ITEM_DROPDOWN_ACTIVESet when the dropdown part of toolbar item is active.
MT_MENU_TEAROFFMT_MENU_DETACHEDSet when the menu is detached.
MT_CHECK_BOX and MT_RADIO_BOXMT_DRAW_MASKSet when we want draw the mask instead of the widget. Beware that the state of widget is undefined when drawing the mask. The visible part of widget should be colored by black and invisible by white color. This flag is currently used only in QT.
MT_PROGRESSBARMT_PROGRESSBAR_REVERSEDSet when the progressbar is reversed (right-to-left or top-to-bottom).