Article View: comp.os.ms-windows.programmer.misc
Article #1867Re: Moving Lines
From: John Grant
Date: Wed, 16 Dec 1992 04:42
Date: Wed, 16 Dec 1992 04:42
20 lines
1269 bytes
1269 bytes
In article <18565@mindlink.bc.ca> Steve_Goyette@mindlink.bc.ca (Steve Goyette) writes: >HI all, > > I would like to be able to plot a line between two points with >handles on each end. And then be able to re-position the line by draging the >handles. I can do this by capturing the mouse moves and re-painting, but I >don't want to have to re-paint a large area (Which is used by a drawing) Any >ideas??? Draw it using R2_XORPEN or R2_NOT mode (function SetROP2). You will need to draw it twice for each movement: draw initial line at (x,y) in XOR mode when you drag it to a new (xnew,ynew) point: draw at (x,y) again in XOR mode to erase x=xnew;y=ynew; draw at (x,y) in XOR mode Repeat this cycle as you move it. -- John A. Grant jagrant@emr1.emr.ca Airborne Geophysics Geological Survey of Canada, Ottawa
Technical Details
Message-ID:
<1992Dec16.044226.26992@emr1.emr.ca>Path:
arc1-ca.pugleaf.net!sparky!uunet!usc!elroy.jpl.nasa.gov!ames!agate!spool.mu.edu!uwm.edu!cs.utexas.edu!torn!nott!emr1!jagrantReferences:
<18565@mindlink.bc.ca>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.ms-windows.programmer.misc Path: arc1-ca.pugleaf.net!sparky!uunet!usc!elroy.jpl.nasa.gov!ames!agate!spool.mu.edu!uwm.edu!cs.utexas.edu!torn!nott!emr1!jagrant From: jagrant@emr1.emr.ca (John Grant) Subject: Re: Moving Lines Message-ID: <1992Dec16.044226.26992@emr1.emr.ca> Organization: Energy, Mines, and Resources, Ottawa References: <18565@mindlink.bc.ca> Date: Wed, 16 Dec 1992 04:42:26 GMT Lines: 20