zListView Class Reference

DERIVED CLASS FOR LISTVIEW CONTROLS. More...

#include <Zclass.h>

Inheritance diagram for zListView:
zWindow

List of all members.

Public Member Functions

void BackgroundImage (LPTSTR img, int xOff=0, int yOff=0)
void BackgroundImageTiled (LPTSTR img, int xOff=0, int yOff=0)
void IconSpacing (int cx, int cy)
virtual void LVNGetDispInfo (NMLVDISPINFO *)
virtual void LVNItemChanged (int, unsigned long)
virtual bool LVNItemChanging (int, unsigned long)
virtual void LVNColumnClick (int)
virtual void LVNKeyDown (int)
virtual void NMClick (int, unsigned long)
virtual void NMRClick (int, unsigned long)
virtual void NMDblClk (int, unsigned long)
virtual bool LVNBeginLabelEdit (int)
virtual bool LVNEndLabelEdit (int)

Detailed Description

DERIVED CLASS FOR LISTVIEW CONTROLS.

% Provides functionality of a “list view control,” which displays a collection of items each consisting of an icon (from an image list) and a label. In addition to an icon and label,each item can have information displayed in columns to the right of the icon and label.


Member Function Documentation

void zListView::BackgroundImage ( LPTSTR  img,
int  xOff = 0,
int  yOff = 0 
) [inline]

Sets the background image.

Parameters:
img - Address of a NULL-terminated string that contains the URL or the path of the background image
xOff - Percentage of the control's client area that the image should be offset horizontally. For example, at 0 percent, the image will be displayed against the left edge of the control's client area. At 50 percent, the image will be displayed horizontally centered in the control's client area. At 100 percent, the image will be displayed against the right edge of the control's client area
yOff - Percentage of the control's client area that the image should be offset vertically. For example, at 0 percent, the image will be displayed against the top edge of the control's client area. At 50 percent, the image will be displayed vertically centered in the control's client area. At 100 percent, the image will be displayed against the bottom edge of the control's client area
void zListView::BackgroundImageTiled ( LPTSTR  img,
int  xOff = 0,
int  yOff = 0 
) [inline]

Sets the background image. The background image will be tiled to fill the entire background of the control.

Parameters:
img - Address of a NULL-terminated string that contains the URL or the path of the background image
xOff - Percentage of the control's client area that the image should be offset horizontally. For example, at 0 percent, the image will be displayed against the left edge of the control's client area. At 50 percent, the image will be displayed horizontally centered in the control's client area. At 100 percent, the image will be displayed against the right edge of the control's client area
yOff - Percentage of the control's client area that the image should be offset vertically. For example, at 0 percent, the image will be displayed against the top edge of the control's client area. At 50 percent, the image will be displayed vertically centered in the control's client area. At 100 percent, the image will be displayed against the bottom edge of the control's client area
void zListView::IconSpacing ( int  cx,
int  cy 
) [inline]

Sets the spacing between icons in list-view controls that have the LVS_ICON style.

Parameters:
cx - Distance, in pixels, to set between icons on the x-axis. See Remarks.
cy - Distance, in pixels, to set between icons on the y-axis. See Remarks. REMARKS: Values for cx and cy are relative to the upper-left corner of an icon bitmap. Therefore, to set spacing between icons that do not overlap, the cx or cy values must include the size of the icon, plus the amount of empty space desired between icons. Values that do not include the width of the icon will result in overlaps. When defining the icon spacing, cx and cy must set to 4 or larger. Smaller values will not yield the desired layout. To reset cx and cy to the default spacing, set the lParam value to -1.
virtual bool zListView::LVNBeginLabelEdit ( int   )  [inline, virtual]

Notifies the control's parent window about the start of label editing for an item.

virtual void zListView::LVNColumnClick ( int   )  [inline, virtual]

Notifies the control's parent window that a column header was clicked.

virtual bool zListView::LVNEndLabelEdit ( int   )  [inline, virtual]

Notifies the control's parent window about the end of label editing for an item.

virtual void zListView::LVNGetDispInfo ( NMLVDISPINFO *   )  [inline, virtual]

Notifies the control's parent window to provide information needed to display or sort a list-view item.

virtual void zListView::LVNItemChanged ( int  ,
unsigned  long 
) [inline, virtual]

Notifies the control's parent window that an item has changed.

virtual bool zListView::LVNItemChanging ( int  ,
unsigned  long 
) [inline, virtual]

Notifies the control's parent window that an item is going to change.

virtual void zListView::LVNKeyDown ( int   )  [inline, virtual]

Notifies the control's parent window that a key has been pressed.

virtual void zListView::NMClick ( int  ,
unsigned  long 
) [inline, virtual]

Notifies the control's parent window when the user clicks an item with the left mouse button.

virtual void zListView::NMDblClk ( int  ,
unsigned  long 
) [inline, virtual]

Notifies the control's parent window when the user double-clicks an item with the left mouse button.

virtual void zListView::NMRClick ( int  ,
unsigned  long 
) [inline, virtual]

Notifies the control's parent window when the user clicks an item with the right mouse button.


The documentation for this class was generated from the following file:

Generated on Sun Nov 29 07:22:17 2009 for Rad.on++ by  doxygen 1.6.1