Owner-Draw Buttons and Menus

It has to respond to the WM_MEASUREITEM by telling Windows the dimensions of the item. Windows can then create a device context the right size. This device context (for the button, menu, or list box) will be passed with the WM_DRAWITEM message. Your program responds to this message by painting the button or menu or list box. ................
................