Export (0) Print
Expand All
Expand Minimize

CListCtrl::GetBkImage

Retrieves the current background image of a list view control.

BOOL GetBkImage( 
   LVBKIMAGE* plvbkImage  
) const;

plvbkImage

A pointer to an LVBKIMAGE structure containing the current background image of the list view.

Returns nonzero if successful, or zero otherwise.

This method implements the behavior of the Win32 macro, ListView_GetBkImage, as described in the Windows SDK.

		LVBKIMAGE bki;

		// If no background image is set for the list view control use 
		// the Microsoft homepage image as the background image. 
		if (m_myListCtrl.GetBkImage(&bki) && (bki.ulFlags == LVBKIF_SOURCE_NONE))
		{
			m_myListCtrl.SetBkImage(
				_T("http://www.microsoft.com/library/images/gifs/homepage/microsoft.gif"),
				TRUE);
		}

Header: afxcmn.h

Show:
© 2014 Microsoft