Results 1 to 4 of 4

Thread: using AdressOf ProcedureName in a usercontrol ? ...

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2002
    Location
    Canada
    Posts
    51

    using AdressOf ProcedureName in a usercontrol ? ...

    I'm trying to subclass a form, but inside of a usercontrol ...

    WndProcOld& = SetWindowLong(hwnd, GWL_WNDPROC, AddressOf WindProc) <- using that to initiate the subclassing

    WindProc being the function name ... but it doesn't work inside the usercontrol ? .. (as the function isn't in a module, at least I think that's why) ... Is there a way around this ?
    ~T

  2. #2
    old fart Frans C's Avatar
    Join Date
    Oct 1999
    Location
    the Netherlands
    Posts
    2,926
    Put it in a module.

  3. #3
    PowerPoster
    Join Date
    Jun 2001
    Location
    Trafalgar, IN
    Posts
    4,141
    What are you trying to accomplish by subclassing the form?

  4. #4

    Thread Starter
    Member
    Join Date
    Mar 2002
    Location
    Canada
    Posts
    51
    trying to get mouse scroller to work so that the user can scroll the form ... see related thread ..

    HERE
    ~T

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width