◄Notification Group► ◄Overview► ◄Up► ◄Next► ◄Previous► ──────────────────────────────────────────────────────────────────────────── #define INCL_WINBUTTONS WM_CONTROL id = (USHORT) SHORT1FROMMP(mp1); /* control-window ID */ usNotifyCode = BN_PAINT; pUserButton = (PUSERBUTTON) PFROMMP(mp2); /* pointer to button structure */ The BN_PAINT notification message is sent from a BS_USERBUTTON button to the owner window, instructing it to draw the button control. Parameter Description ──────────────────────────────────────────────────────────────────────────── id Low word of mp1. Identifies the control window. usNotifyCode High word of mp1. Set to BN_PAINT. pUserButton Low and high word of mp2. Points to a USERBUTTON structure that has button information. Return Value An application should return zero if it processes this message. See Also WM_CONTROL, USERBUTTON ♦