释义 |
CImageList::SetDragCursor
ImageBOOL SetDragCursorImage( int nDrag, CPoint ptHotSpot);
返回值:如果成功,则返回非零值,否则为0。
参数:nDrag | 与拖动图象组合的新图象的索引。 | ptHotSpot | 新图象中激活点的位置。 |
说明: 通过组合指定图象(典型地,如鼠标光标图象)与当前拖动图象来构造一个新的拖动图象。 由于拖动函数在拖动操作中使用新图象,你应该在调用了CImageList::Set-DragCursorImage后使用Windows ShowCursor函数来隐藏实际的鼠标光标。否则,在拖动过程中,系统可能出现两个鼠标光标。
请参阅: CImageList::BeginDrag, CImageList::EndDrag, CImageList::GetDragImage |