Partager via


CBitmap::LoadOEMBitmap

Loads a predefined bitmap used by Windows.

BOOL LoadOEMBitmap(
   UINT nIDBitmap 
);

Parameters

  • nIDBitmap
    ID number of the predefined Windows bitmap. The possible values are listed below from WINDOWS.H:

    OBM_BTNCORNERS

    OBM_OLD_RESTORE

    OBM_BTSIZE

    OBM_OLD_RGARROW

    OBM_CHECK

    OBM_OLD_UPARROW

    OBM_CHECKBOXES

    OBM_OLD_ZOOM

    OBM_CLOSE

    OBM_REDUCE

    OBM_COMBO

    OBM_REDUCED

    OBM_DNARROW

    OBM_RESTORE

    OBM_DNARROWD

    OBM_RESTORED

    OBM_DNARROWI

    OBM_RGARROW

    OBM_LFARROW

    OBM_RGARROWD

    OBM_LFARROWD

    OBM_RGARROWI

    OBM_LFARROWI

    OBM_SIZE

    OBM_MNARROW

    OBM_UPARROW

    OBM_OLD_CLOSE

    OBM_UPARROWD

    OBM_OLD_DNARROW

    OBM_UPARROW

    OBM_OLD_LFARROW

    OBM_ZOOM

    OBM_OLD_REDUCE

    OBM_ZOOMD

Return Value

Nonzero if successful; otherwise 0.

Remarks

Bitmap names that begin with OBM_OLD represent bitmaps used by Windows versions prior to 3.0.

Note that the constant OEMRESOURCE must be defined before including WINDOWS.H in order to use any of the OBM_ constants.

Requirements

Header: afxwin.h

See Also

Concepts

CBitmap Class

CBitmap Members

Hierarchy Chart

CBitmap::LoadBitmap

LoadBitmap