The framework calls this method when it erases a button in a popup window.

virtual void OnErasePopupWindowButton(
   CDC* pDC,
   CRect rectClient,
   CMFCDesktopAlertWndButton* pButton

[in] pDC

A pointer to a device context.

[in] rectClient

The rectangle that specifies the client area of the popup window.

[in] pButton

Pointer to the button to be erased.

Header: afxvisualmanageroffice2003.h