Thread: How To use CDC::DrawDragRect func.

  1. #1
    Registered User
    Join Date
    Dec 2001
    Posts
    43

    Question How To use CDC::DrawDragRect func.

    1) I read the help of this function, but I didn't find an example for it...

    2) you Know that we use this function to draw a "virtual" rectandle while we moving the mouse befor free it. Ok, what the alternative function if I want to draw "virtual Ellepse or line" ?

  2. #2
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    1. Modify this for use with mfc:

    Microsoft Knowledge Base Article - Q135865 HOWTO: Use Win32 API to Draw a Dragging Rectangle on Screen DC

    2. Use modified code from 1. but use 'Ellipse' fn instead of Rectangle fn. Both Rectangle and Ellipse are CDC fns.

  3. #3
    Registered User
    Join Date
    Dec 2001
    Posts
    43
    thank you very much.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. arguments from another func
    By quantt in forum C Programming
    Replies: 14
    Last Post: 01-08-2009, 10:57 PM
  2. Basic question about GSL ODE func RK4
    By cosmich in forum Game Programming
    Replies: 1
    Last Post: 05-07-2007, 02:27 AM
  3. how can i call a func by touching some adrs ?
    By jabka in forum C Programming
    Replies: 6
    Last Post: 04-25-2007, 01:41 PM
  4. typedef a func
    By trekker in forum C Programming
    Replies: 4
    Last Post: 07-02-2002, 05:15 AM
  5. Delete & print func()
    By spentdome in forum C Programming
    Replies: 5
    Last Post: 05-29-2002, 09:02 AM