passing value into ondraw function

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ellieong

    #1

    passing value into ondraw function

    Hi

    How do I pass a value let's say an integer value into the
    ondraw function, in order to vary the position of any
    drawing for instance a line?

    Ellie.
  • David Lowndes

    #2
    Re: passing value into ondraw function

    >How do I pass a value let's say an integer value into the[color=blue]
    >ondraw function, in order to vary the position of any
    >drawing for instance a line?[/color]

    Since OnDraw is called by the MFC framework, you can't change it that
    way.

    What you can do is have a member variable in your view class that is
    the position value.

    Dave
    --
    MVP VC++ FAQ: http://www.mvps.org/vcfaq

    Comment

    Working...