Jump to content
Xtreme .Net Talk

msmeth

Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by msmeth

  1. I have to actually choose a colour from a menu to draw the line. Then the line begins drawing from the menu. The menu is always being redrawn (I know it sounds odd but I can't get into explaining all that this thing does). So, this solution you showed me isn't working. It's causing a discontinuous line to be drawn....
  2. I need to draw lines similar to drawing lines using a mouse (click to start the line and click to end the line. There is no holding down like dragging a mouse). How do I use invalidate so the entire screen isn't being redrawn but the line shows continously?
  3. drawing line as cursor moves Hi. I got that first issue dealt with just fine. Now I have another. I need to draw lines similar to drawing lines using a mouse (click to start the line and click to end the line. There is no holding down like dragging a mouse). How do I use invalidate so the entire screen isn't being redrawn but the line shows continously?
  4. Okay thanks...makes sense. I'll try and convert your code to C++. Thanks a lot.
  5. They're within a window. I'll try the Invalidate(rect). What about loading the image. I load the image and specify to redraw the rectangle where the image is right? Is there a best way to do that and specifying the rectange area? And do I call Invalidate in the Paint event?
  6. Hey all. I need to have two cursors on my screen, but neither are controlled by a mouse. They are controlled by two external devices I'm using as pointing devices. I'm using Visual C++ .NET 2003. What I need to do is move around the cursors in the most efficient way possible and I'm not sure how to do this. What is the best way to display the images (bitmaps but I can change that) and to update the screen without the entire thing being redrawn all the time? I've read about it and it looks like I need to use Invalidate(region) but haven't been able to get it to work. I've also read about using a timer but am confused as to how to really do it. Could someone could give me an example or a good link please......thanks in advance.
×
×
  • Create New...