Click to See Complete Forum and Search --> : How can I get a hairlines cursor in my View?


Daniel Schmid
May 26th, 1999, 02:50 AM
I have a view which displays a graphic. I would like to draw a hairlines cursor (cross) ... what is the best way to do this ?

cniquille
May 26th, 1999, 04:44 AM
You have an example of this in the MSDN with VC++ 6.0
in the index tab search for "Cursor sample (Windows UI text selection)"

Christian Niquille

elery shaw
May 26th, 1999, 09:42 AM
try this

BOOL CMyView::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message)
{
SetCursor(AfxGetApp()->LoadStandardCursor(
IDC_CROSS));

return TRUE;
}