Help Center

CButton.DeleteImagemethod

Deletes an image (icon or bitmap) associated with a button.

WindowsmethodCButton.incdocumented

Syntax

FUNCTION DeleteImage (BYVAL hButton AS HWND, BYVAL ImageType AS DWORD) AS BOOLEAN

Parameters

NameDescription
hButtonThe handle of the button control.
ImageTypeThe type of image to delete. This parameter can be one of the following values:

Description

Deletes an image (icon or bitmap) associated with a button. Returns TRUE or FALSE.

Example

CButton.Deleteimage(hButton, IMAGE_BITMAP) CButton.Deleteimage(hButton, IMAGE_ICON)

Reference

  • Include file CButton.inc
  • Defined in AfxNova/CButton.inc:239
  • Documented in Windows/WIndows Controls/CButton Class.md
  • Topic: CButton Class