Thread: LineTo() in XP

  1. #1
    Registered User
    Join Date
    Jan 2005
    Posts
    51

    LineTo() in XP

    Have any of you noticed that with LineTo() in XP, that when you change the pen, that the end of the line doesn't always move up? An additional MoveToEx() is sometimes required after I delete the pen. Could I be doing something wrong, or is this a quirk?

    Thanks in advance

  2. #2
    Registered User pronecracker's Avatar
    Join Date
    Oct 2006
    Location
    netherlands
    Posts
    158
    I don't quite get what exactly goes wrong. The only thing I could think of is that you might have forgotten that you may not delete a pen that is still selected in a DC. You could post your code, for us to see if something's wrong.
    Don't call me stupid.

  3. #3
    Registered User
    Join Date
    Jan 2005
    Posts
    51
    Nevermind, I went to the laundramat and it came to me that RestoreDC() is the culprit. I didn't realize that the previous coordinate would be restored.

    That's anyway.

    Funny how that works though, the vacation from the computer that is. Just stopped thinking about it and it popped into my head on the way to do the laundry.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 8
    Last Post: 05-07-2009, 11:31 AM
  2. Trying to Install XP over Vista with SATA HD
    By Shamino in forum Tech Board
    Replies: 2
    Last Post: 12-13-2008, 06:56 PM
  3. Need help with program
    By HAssan in forum C Programming
    Replies: 8
    Last Post: 06-10-2007, 08:05 PM
  4. Question..
    By pode in forum Windows Programming
    Replies: 12
    Last Post: 12-19-2004, 07:05 PM
  5. Windows XP regression over time
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 12-17-2002, 10:49 AM