NIconobjects are icon controls that have the look-and-feel of the native window manager's icon controls.
NIconwith an enclosing
CView. This class does not use the commands set by
NIcon(CSubview* theEnclosure, const CRect& theRegion,
long theIconId, long theAttributes = 0L);
theEnclosureis a pointer to the subview that will contain the icon control.
theRegionis a coordinate location, local to the enclosure, that is used to place the icon control.
theIconIdis the tag ID of the icon.
theAttributestakes a value from a set of XVT Portability Toolkit-provided attributes that you can give to native views. You can OR together the appropriate control flag constants into an attribute value. For a listing of the possible control flags for
theAttributes, refer to the table in the description of
CNativeView's protected constructor
NIcon(CSubview* theEnclosure, long theContainerId, long theId);
theContainerIdis the ID of the container of the icon.
theIdis the resource ID of the icon itself.
NIcon(const NIcon& theIcon);
NIcon& operator=(const NIcon& theIcon);
virtual void DoHit(CONTROL_INFO theControlInfo);
NIconobject never receives events. This method is reserved for future use.
virtual void Activate(void);
CNativeView::Activateto disable icon activation.