Thread: Question about the windows routine...

  1. #16
    left crog... back when? incognito's Avatar
    Join Date
    Oct 2001
    Posts
    1,427
    sorry that was me forgot to log on

  2. #17
    Registered User
    Join Date
    Feb 2002
    Posts
    73
    Ok..... Sir, you seem a bit new to this whole thing. Therefore, I suggest you aquire the win API refrence that contains the syntax and explanation of all functions and variables in windows programming. btw, you should not attempt to write a game unless you can create a fairly functional application. It is not possible for you to not even understand proper mouse handling and write a game. Same goes with the dc. You MUST be able to do such things. It must be so.

  3. #18
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,868
    As you move the mouse Windows sends the mouse has moved msg. These msg's are placed in a que waiting to be sent to your app and processed.

    Depending on the speed of your PC, and the speed that you move the mouse, you may see the line not 'keeping up' with the cursor. Each msg will contain a new point to draw TO.

    From MSDN help
    "If LineTo succeeds, the current position is set to the specified ending point. "

    So the last point is the next starting point creating a series of short straight lines.
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. General question from a beginner to Windows C++ programming
    By Kontan in forum Windows Programming
    Replies: 1
    Last Post: 09-29-2006, 08:03 PM
  2. Replies: 5
    Last Post: 08-16-2006, 02:05 PM
  3. Two Windows on two different HDD??? Question
    By Sevrin in forum Tech Board
    Replies: 6
    Last Post: 06-19-2003, 10:22 AM
  4. Codec Bitrates?
    By gvector1 in forum C# Programming
    Replies: 2
    Last Post: 06-16-2003, 08:39 AM
  5. Another windows service question... starting/stopping
    By BrianK in forum Windows Programming
    Replies: 1
    Last Post: 03-20-2003, 12:22 AM