When to use OnDrawItem, DrawItem and OnPaint?

Note: This post assumes that owner draw flag for controls is set. OnDrawItem is mainly provided to facilitate owner drawing child controls in a parent window class without sub classing them. An e.g. can be a tab/button/listbox/combobox/menu control, we can ownerdraw these without sub classing using this function. Note that OnDrawItem is called as result […]
Continue reading…