CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 1999
    Posts
    11

    How can I get a hairlines cursor in my View?

    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 ?



  2. #2
    Join Date
    May 1999
    Location
    Geneva
    Posts
    32

    Re: How can I get a hairlines cursor in my View?

    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


  3. #3
    Join Date
    May 1999
    Posts
    3

    Re: How can I get a hairlines cursor in my View?

    try this

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

    return TRUE;
    }



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured