Resize of parent control


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 11 of 11

Thread: Resize of parent control

  1. #1
    Val Guest

    Resize of parent control


    I am trying to create my own ActiveX control and I need this control behaves
    depending on current size of parent control. How can I define in my ActiveX
    control if parent control has changed its size?

    Thanks for any help


  2. #2
    Karl E. Peterson Guest

    Re: Resize of parent control

    Hi Val --

    > I am trying to create my own ActiveX control and I need this control behaves
    > depending on current size of parent control. How can I define in my ActiveX
    > control if parent control has changed its size?


    You'll need to hook the message stream of the parent, and watch for relevent window
    messages (WM_SIZE, WM_SIZING, etc.) If you're unfamiliar with this technique, see
    HookMe.zip or Grabber.zip on my web site.

    Later... Karl
    --
    http://www.mvps.org/vb



  3. #3
    Val Guest

    Re: Resize of parent control


    Hi Karl

    How can i define if my control has changed his position?
    Can I use same technique like in HookMe?

    Thanks
    Val

    "Karl E. Peterson" <karl@mvps.org> wrote:
    >Hi Val --
    >
    >> I am trying to create my own ActiveX control and I need this control behaves
    >> depending on current size of parent control. How can I define in my ActiveX
    >> control if parent control has changed its size?

    >
    >You'll need to hook the message stream of the parent, and watch for relevent

    window
    >messages (WM_SIZE, WM_SIZING, etc.) If you're unfamiliar with this technique,

    see
    >HookMe.zip or Grabber.zip on my web site.
    >
    >Later... Karl
    >--
    >http://www.mvps.org/vb
    >
    >



  4. #4
    Karl E. Peterson Guest

    Re: Resize of parent control

    Hi Val --

    > How can i define if my control has changed his position?
    > Can I use same technique like in HookMe?


    Well, it'd take some testing, but I would imagine you'd be watching for WM_MOVE or
    WM_MOVING on your own control, yeah. Make sense? Do you have Spy++ installed?
    That's the quick/easy way to figure out what messages to watch for.

    Later... Karl
    --
    http://www.mvps.org/vb




    > "Karl E. Peterson" <karl@mvps.org> wrote:
    > >Hi Val --
    > >
    > >> I am trying to create my own ActiveX control and I need this control behaves
    > >> depending on current size of parent control. How can I define in my ActiveX
    > >> control if parent control has changed its size?

    > >
    > >You'll need to hook the message stream of the parent, and watch for relevent

    > window
    > >messages (WM_SIZE, WM_SIZING, etc.) If you're unfamiliar with this technique,

    > see
    > >HookMe.zip or Grabber.zip on my web site.
    > >
    > >Later... Karl
    > >--
    > >http://www.mvps.org/vb
    > >
    > >

    >



  5. #5
    Val Guest

    Re: Resize of parent control


    Hi Karl,

    Every time when I try to set hook inside my control VB crashes. I also tried
    to use dwspydmo.dll, which provides same technique but I got same result.
    Maybe I do it in wrong way?

    Thanks for any help.

    Val

    "Karl E. Peterson" <karl@mvps.org> wrote:
    >Hi Val --
    >
    >> How can i define if my control has changed his position?
    >> Can I use same technique like in HookMe?

    >
    >Well, it'd take some testing, but I would imagine you'd be watching for

    WM_MOVE or
    >WM_MOVING on your own control, yeah. Make sense? Do you have Spy++ installed?
    >That's the quick/easy way to figure out what messages to watch for.
    >
    >Later... Karl
    >--
    >http://www.mvps.org/vb
    >
    >
    >
    >
    >> "Karl E. Peterson" <karl@mvps.org> wrote:
    >> >Hi Val --
    >> >
    >> >> I am trying to create my own ActiveX control and I need this control

    behaves
    >> >> depending on current size of parent control. How can I define in my

    ActiveX
    >> >> control if parent control has changed its size?
    >> >
    >> >You'll need to hook the message stream of the parent, and watch for relevent

    >> window
    >> >messages (WM_SIZE, WM_SIZING, etc.) If you're unfamiliar with this technique,

    >> see
    >> >HookMe.zip or Grabber.zip on my web site.
    >> >
    >> >Later... Karl
    >> >--
    >> >http://www.mvps.org/vb
    >> >
    >> >

    >>

    >



  6. #6
    Karl E. Peterson Guest

    Re: Resize of parent control

    Hi Val --

    > Maybe I do it in wrong way?


    Yep. Not sure what else to say. There are literally hundreds, if not thousands, of
    examples on the net. Without you offering more clues than to say "VB crashes", all I
    can do is agree.

    Later... Karl
    --
    http://www.mvps.org/vb


    "Val" <m2r3v1@yahoo.com> wrote in message news:3ae05179$1@news.devx.com...
    >
    > Hi Karl,
    >
    > Every time when I try to set hook inside my control VB crashes. I also tried
    > to use dwspydmo.dll, which provides same technique but I got same result.
    > Maybe I do it in wrong way?
    >
    > Thanks for any help.
    >
    > Val
    >
    > "Karl E. Peterson" <karl@mvps.org> wrote:
    > >Hi Val --
    > >
    > >> How can i define if my control has changed his position?
    > >> Can I use same technique like in HookMe?

    > >
    > >Well, it'd take some testing, but I would imagine you'd be watching for

    > WM_MOVE or
    > >WM_MOVING on your own control, yeah. Make sense? Do you have Spy++ installed?
    > >That's the quick/easy way to figure out what messages to watch for.
    > >
    > >Later... Karl
    > >--
    > >http://www.mvps.org/vb
    > >
    > >
    > >
    > >
    > >> "Karl E. Peterson" <karl@mvps.org> wrote:
    > >> >Hi Val --
    > >> >
    > >> >> I am trying to create my own ActiveX control and I need this control

    > behaves
    > >> >> depending on current size of parent control. How can I define in my

    > ActiveX
    > >> >> control if parent control has changed its size?
    > >> >
    > >> >You'll need to hook the message stream of the parent, and watch for relevent
    > >> window
    > >> >messages (WM_SIZE, WM_SIZING, etc.) If you're unfamiliar with this technique,
    > >> see
    > >> >HookMe.zip or Grabber.zip on my web site.
    > >> >
    > >> >Later... Karl
    > >> >--
    > >> >http://www.mvps.org/vb
    > >> >
    > >> >
    > >>

    > >

    >



  7. #7
    Val Guest

    Re: Resize of parent control


    Hi Karl!

    I made hook inside my user defined control using SetWindowsHooEx API function.
    If I use WH_CBT type of hook procedure it works fine, but if I try to use
    WH_CALLWNDPROCRET type, my VB crashes immediately and it seems to me that
    my hooking procedure looping. Can I use WH_CALLWNDPROCRET type inside my
    user defined control?

    Thanks,

    Val

    It works fine unless I try to use
    "Karl E. Peterson" <karl@mvps.org> wrote:
    >Hi Val --
    >
    >> Maybe I do it in wrong way?

    >
    >Yep. Not sure what else to say. There are literally hundreds, if not thousands,

    of
    >examples on the net. Without you offering more clues than to say "VB crashes",

    all
    >I
    >can do is agree.
    >
    >Later... Karl
    >--
    >http://www.mvps.org/vb
    >
    >
    >"Val" <m2r3v1@yahoo.com> wrote in message news:3ae05179$1@news.devx.com...
    >>
    >> Hi Karl,
    >>
    >> Every time when I try to set hook inside my control VB crashes. I also

    tried
    >> to use dwspydmo.dll, which provides same technique but I got same result.
    >> Maybe I do it in wrong way?
    >>
    >> Thanks for any help.
    >>
    >> Val
    >>
    >> "Karl E. Peterson" <karl@mvps.org> wrote:
    >> >Hi Val --
    >> >
    >> >> How can i define if my control has changed his position?
    >> >> Can I use same technique like in HookMe?
    >> >
    >> >Well, it'd take some testing, but I would imagine you'd be watching for

    >> WM_MOVE or
    >> >WM_MOVING on your own control, yeah. Make sense? Do you have Spy++

    installed?
    >> >That's the quick/easy way to figure out what messages to watch for.
    >> >
    >> >Later... Karl
    >> >--
    >> >http://www.mvps.org/vb
    >> >
    >> >
    >> >
    >> >
    >> >> "Karl E. Peterson" <karl@mvps.org> wrote:
    >> >> >Hi Val --
    >> >> >
    >> >> >> I am trying to create my own ActiveX control and I need this control

    >> behaves
    >> >> >> depending on current size of parent control. How can I define in

    my
    >> ActiveX
    >> >> >> control if parent control has changed its size?
    >> >> >
    >> >> >You'll need to hook the message stream of the parent, and watch for

    relevent
    >> >> window
    >> >> >messages (WM_SIZE, WM_SIZING, etc.) If you're unfamiliar with this

    technique,
    >> >> see
    >> >> >HookMe.zip or Grabber.zip on my web site.
    >> >> >
    >> >> >Later... Karl
    >> >> >--
    >> >> >http://www.mvps.org/vb
    >> >> >
    >> >> >
    >> >>
    >> >

    >>

    >



  8. #8
    Karl E. Peterson Guest

    Re: Resize of parent control

    Hi Val --

    Well, I'm lost, now. I thought you were interested in the sizing of the *parent* to
    your UC? Seems this direction would be for looking at children of your UC, no?

    Sorry... Karl
    --
    http://www.mvps.org/vb


    "Val" <m2r3v1@yahoo.com> wrote in message news:3ae5c5b5$1@news.devx.com...
    >
    > Hi Karl!
    >
    > I made hook inside my user defined control using SetWindowsHooEx API function.
    > If I use WH_CBT type of hook procedure it works fine, but if I try to use
    > WH_CALLWNDPROCRET type, my VB crashes immediately and it seems to me that
    > my hooking procedure looping. Can I use WH_CALLWNDPROCRET type inside my
    > user defined control?
    >
    > Thanks,
    >
    > Val
    >
    > It works fine unless I try to use
    > "Karl E. Peterson" <karl@mvps.org> wrote:
    > >Hi Val --
    > >
    > >> Maybe I do it in wrong way?

    > >
    > >Yep. Not sure what else to say. There are literally hundreds, if not thousands,

    > of
    > >examples on the net. Without you offering more clues than to say "VB crashes",

    > all
    > >I
    > >can do is agree.
    > >
    > >Later... Karl
    > >--
    > >http://www.mvps.org/vb
    > >
    > >
    > >"Val" <m2r3v1@yahoo.com> wrote in message news:3ae05179$1@news.devx.com...
    > >>
    > >> Hi Karl,
    > >>
    > >> Every time when I try to set hook inside my control VB crashes. I also

    > tried
    > >> to use dwspydmo.dll, which provides same technique but I got same result.
    > >> Maybe I do it in wrong way?
    > >>
    > >> Thanks for any help.
    > >>
    > >> Val
    > >>
    > >> "Karl E. Peterson" <karl@mvps.org> wrote:
    > >> >Hi Val --
    > >> >
    > >> >> How can i define if my control has changed his position?
    > >> >> Can I use same technique like in HookMe?
    > >> >
    > >> >Well, it'd take some testing, but I would imagine you'd be watching for
    > >> WM_MOVE or
    > >> >WM_MOVING on your own control, yeah. Make sense? Do you have Spy++

    > installed?
    > >> >That's the quick/easy way to figure out what messages to watch for.
    > >> >
    > >> >Later... Karl
    > >> >--
    > >> >http://www.mvps.org/vb
    > >> >
    > >> >
    > >> >
    > >> >
    > >> >> "Karl E. Peterson" <karl@mvps.org> wrote:
    > >> >> >Hi Val --
    > >> >> >
    > >> >> >> I am trying to create my own ActiveX control and I need this control
    > >> behaves
    > >> >> >> depending on current size of parent control. How can I define in

    > my
    > >> ActiveX
    > >> >> >> control if parent control has changed its size?
    > >> >> >
    > >> >> >You'll need to hook the message stream of the parent, and watch for

    > relevent
    > >> >> window
    > >> >> >messages (WM_SIZE, WM_SIZING, etc.) If you're unfamiliar with this

    > technique,
    > >> >> see
    > >> >> >HookMe.zip or Grabber.zip on my web site.
    > >> >> >
    > >> >> >Later... Karl
    > >> >> >--
    > >> >> >http://www.mvps.org/vb
    > >> >> >
    > >> >> >
    > >> >>
    > >> >
    > >>

    > >

    >



  9. #9
    Val Guest

    Re: Resize of parent control


    Hi Karl!

    I am trying to fit my UC to size of parent control (Form or picture box)
    and I need to track size changing of parent control.

    Thanks,

    Val

    "Karl E. Peterson" <karl@mvps.org> wrote:
    >Hi Val --
    >
    >Well, I'm lost, now. I thought you were interested in the sizing of the

    *parent* to
    >your UC? Seems this direction would be for looking at children of your

    UC, no?
    >
    >Sorry... Karl
    >--
    >http://www.mvps.org/vb
    >
    >
    >"Val" <m2r3v1@yahoo.com> wrote in message news:3ae5c5b5$1@news.devx.com...
    >>
    >> Hi Karl!
    >>
    >> I made hook inside my user defined control using SetWindowsHooEx API function.
    >> If I use WH_CBT type of hook procedure it works fine, but if I try to

    use
    >> WH_CALLWNDPROCRET type, my VB crashes immediately and it seems to me that
    >> my hooking procedure looping. Can I use WH_CALLWNDPROCRET type inside

    my
    >> user defined control?
    >>
    >> Thanks,
    >>
    >> Val
    >>
    >> It works fine unless I try to use
    >> "Karl E. Peterson" <karl@mvps.org> wrote:
    >> >Hi Val --
    >> >
    >> >> Maybe I do it in wrong way?
    >> >
    >> >Yep. Not sure what else to say. There are literally hundreds, if not

    thousands,
    >> of
    >> >examples on the net. Without you offering more clues than to say "VB

    crashes",
    >> all
    >> >I
    >> >can do is agree.
    >> >
    >> >Later... Karl
    >> >--
    >> >http://www.mvps.org/vb
    >> >
    >> >
    >> >"Val" <m2r3v1@yahoo.com> wrote in message news:3ae05179$1@news.devx.com...
    >> >>
    >> >> Hi Karl,
    >> >>
    >> >> Every time when I try to set hook inside my control VB crashes. I also

    >> tried
    >> >> to use dwspydmo.dll, which provides same technique but I got same result.
    >> >> Maybe I do it in wrong way?
    >> >>
    >> >> Thanks for any help.
    >> >>
    >> >> Val
    >> >>
    >> >> "Karl E. Peterson" <karl@mvps.org> wrote:
    >> >> >Hi Val --
    >> >> >
    >> >> >> How can i define if my control has changed his position?
    >> >> >> Can I use same technique like in HookMe?
    >> >> >
    >> >> >Well, it'd take some testing, but I would imagine you'd be watching

    for
    >> >> WM_MOVE or
    >> >> >WM_MOVING on your own control, yeah. Make sense? Do you have Spy++

    >> installed?
    >> >> >That's the quick/easy way to figure out what messages to watch for.
    >> >> >
    >> >> >Later... Karl
    >> >> >--
    >> >> >http://www.mvps.org/vb
    >> >> >
    >> >> >
    >> >> >
    >> >> >
    >> >> >> "Karl E. Peterson" <karl@mvps.org> wrote:
    >> >> >> >Hi Val --
    >> >> >> >
    >> >> >> >> I am trying to create my own ActiveX control and I need this

    control
    >> >> behaves
    >> >> >> >> depending on current size of parent control. How can I define

    in
    >> my
    >> >> ActiveX
    >> >> >> >> control if parent control has changed its size?
    >> >> >> >
    >> >> >> >You'll need to hook the message stream of the parent, and watch

    for
    >> relevent
    >> >> >> window
    >> >> >> >messages (WM_SIZE, WM_SIZING, etc.) If you're unfamiliar with

    this
    >> technique,
    >> >> >> see
    >> >> >> >HookMe.zip or Grabber.zip on my web site.
    >> >> >> >
    >> >> >> >Later... Karl
    >> >> >> >--
    >> >> >> >http://www.mvps.org/vb
    >> >> >> >
    >> >> >> >
    >> >> >>
    >> >> >
    >> >>
    >> >

    >>

    >



  10. #10
    Karl E. Peterson Guest

    Re: Resize of parent control

    Hi Val --

    We're going in circles here, then. <g> Go back to the beginning, where I talked
    about hooking the message stream for the parent. You're not in need of a CBT hook.

    Later... Karl
    --
    http://www.mvps.org/vb


    "Val" <m2r3v1@yahoo.com> wrote in message news:3ae6027e$1@news.devx.com...
    >
    > Hi Karl!
    >
    > I am trying to fit my UC to size of parent control (Form or picture box)
    > and I need to track size changing of parent control.
    >
    > Thanks,
    >
    > Val
    >
    > "Karl E. Peterson" <karl@mvps.org> wrote:
    > >Hi Val --
    > >
    > >Well, I'm lost, now. I thought you were interested in the sizing of the

    > *parent* to
    > >your UC? Seems this direction would be for looking at children of your

    > UC, no?
    > >
    > >Sorry... Karl
    > >--
    > >http://www.mvps.org/vb
    > >
    > >
    > >"Val" <m2r3v1@yahoo.com> wrote in message news:3ae5c5b5$1@news.devx.com...
    > >>
    > >> Hi Karl!
    > >>
    > >> I made hook inside my user defined control using SetWindowsHooEx API function.
    > >> If I use WH_CBT type of hook procedure it works fine, but if I try to

    > use
    > >> WH_CALLWNDPROCRET type, my VB crashes immediately and it seems to me that
    > >> my hooking procedure looping. Can I use WH_CALLWNDPROCRET type inside

    > my
    > >> user defined control?
    > >>
    > >> Thanks,
    > >>
    > >> Val
    > >>
    > >> It works fine unless I try to use
    > >> "Karl E. Peterson" <karl@mvps.org> wrote:
    > >> >Hi Val --
    > >> >
    > >> >> Maybe I do it in wrong way?
    > >> >
    > >> >Yep. Not sure what else to say. There are literally hundreds, if not

    > thousands,
    > >> of
    > >> >examples on the net. Without you offering more clues than to say "VB

    > crashes",
    > >> all
    > >> >I
    > >> >can do is agree.
    > >> >
    > >> >Later... Karl
    > >> >--
    > >> >http://www.mvps.org/vb
    > >> >
    > >> >
    > >> >"Val" <m2r3v1@yahoo.com> wrote in message news:3ae05179$1@news.devx.com...
    > >> >>
    > >> >> Hi Karl,
    > >> >>
    > >> >> Every time when I try to set hook inside my control VB crashes. I also
    > >> tried
    > >> >> to use dwspydmo.dll, which provides same technique but I got same result.
    > >> >> Maybe I do it in wrong way?
    > >> >>
    > >> >> Thanks for any help.
    > >> >>
    > >> >> Val
    > >> >>
    > >> >> "Karl E. Peterson" <karl@mvps.org> wrote:
    > >> >> >Hi Val --
    > >> >> >
    > >> >> >> How can i define if my control has changed his position?
    > >> >> >> Can I use same technique like in HookMe?
    > >> >> >
    > >> >> >Well, it'd take some testing, but I would imagine you'd be watching

    > for
    > >> >> WM_MOVE or
    > >> >> >WM_MOVING on your own control, yeah. Make sense? Do you have Spy++
    > >> installed?
    > >> >> >That's the quick/easy way to figure out what messages to watch for.
    > >> >> >
    > >> >> >Later... Karl
    > >> >> >--
    > >> >> >http://www.mvps.org/vb
    > >> >> >
    > >> >> >
    > >> >> >
    > >> >> >
    > >> >> >> "Karl E. Peterson" <karl@mvps.org> wrote:
    > >> >> >> >Hi Val --
    > >> >> >> >
    > >> >> >> >> I am trying to create my own ActiveX control and I need this

    > control
    > >> >> behaves
    > >> >> >> >> depending on current size of parent control. How can I define

    > in
    > >> my
    > >> >> ActiveX
    > >> >> >> >> control if parent control has changed its size?
    > >> >> >> >
    > >> >> >> >You'll need to hook the message stream of the parent, and watch

    > for
    > >> relevent
    > >> >> >> window
    > >> >> >> >messages (WM_SIZE, WM_SIZING, etc.) If you're unfamiliar with

    > this
    > >> technique,
    > >> >> >> see
    > >> >> >> >HookMe.zip or Grabber.zip on my web site.
    > >> >> >> >
    > >> >> >> >Later... Karl
    > >> >> >> >--
    > >> >> >> >http://www.mvps.org/vb
    > >> >> >> >
    > >> >> >> >
    > >> >> >>
    > >> >> >
    > >> >>
    > >> >
    > >>

    > >

    >



  11. #11
    Val Guest

    Re: Resize of parent control


    Hi Karl!

    It seems to me that I did it.

    Thanks for help

    Val

    "Karl E. Peterson" <karl@mvps.org> wrote:
    >Hi Val --
    >
    >We're going in circles here, then. <g> Go back to the beginning, where

    I talked
    >about hooking the message stream for the parent. You're not in need of

    a CBT hook.
    >
    >Later... Karl
    >--
    >http://www.mvps.org/vb
    >
    >
    >"Val" <m2r3v1@yahoo.com> wrote in message news:3ae6027e$1@news.devx.com...
    >>
    >> Hi Karl!
    >>
    >> I am trying to fit my UC to size of parent control (Form or picture box)
    >> and I need to track size changing of parent control.
    >>
    >> Thanks,
    >>
    >> Val
    >>
    >> "Karl E. Peterson" <karl@mvps.org> wrote:
    >> >Hi Val --
    >> >
    >> >Well, I'm lost, now. I thought you were interested in the sizing of

    the
    >> *parent* to
    >> >your UC? Seems this direction would be for looking at children of your

    >> UC, no?
    >> >
    >> >Sorry... Karl
    >> >--
    >> >http://www.mvps.org/vb
    >> >
    >> >
    >> >"Val" <m2r3v1@yahoo.com> wrote in message news:3ae5c5b5$1@news.devx.com...
    >> >>
    >> >> Hi Karl!
    >> >>
    >> >> I made hook inside my user defined control using SetWindowsHooEx API

    function.
    >> >> If I use WH_CBT type of hook procedure it works fine, but if I try

    to
    >> use
    >> >> WH_CALLWNDPROCRET type, my VB crashes immediately and it seems to me

    that
    >> >> my hooking procedure looping. Can I use WH_CALLWNDPROCRET type inside

    >> my
    >> >> user defined control?
    >> >>
    >> >> Thanks,
    >> >>
    >> >> Val
    >> >>
    >> >> It works fine unless I try to use
    >> >> "Karl E. Peterson" <karl@mvps.org> wrote:
    >> >> >Hi Val --
    >> >> >
    >> >> >> Maybe I do it in wrong way?
    >> >> >
    >> >> >Yep. Not sure what else to say. There are literally hundreds, if

    not
    >> thousands,
    >> >> of
    >> >> >examples on the net. Without you offering more clues than to say

    "VB
    >> crashes",
    >> >> all
    >> >> >I
    >> >> >can do is agree.
    >> >> >
    >> >> >Later... Karl
    >> >> >--
    >> >> >http://www.mvps.org/vb
    >> >> >
    >> >> >
    >> >> >"Val" <m2r3v1@yahoo.com> wrote in message news:3ae05179$1@news.devx.com...
    >> >> >>
    >> >> >> Hi Karl,
    >> >> >>
    >> >> >> Every time when I try to set hook inside my control VB crashes.

    I also
    >> >> tried
    >> >> >> to use dwspydmo.dll, which provides same technique but I got same

    result.
    >> >> >> Maybe I do it in wrong way?
    >> >> >>
    >> >> >> Thanks for any help.
    >> >> >>
    >> >> >> Val
    >> >> >>
    >> >> >> "Karl E. Peterson" <karl@mvps.org> wrote:
    >> >> >> >Hi Val --
    >> >> >> >
    >> >> >> >> How can i define if my control has changed his position?
    >> >> >> >> Can I use same technique like in HookMe?
    >> >> >> >
    >> >> >> >Well, it'd take some testing, but I would imagine you'd be watching

    >> for
    >> >> >> WM_MOVE or
    >> >> >> >WM_MOVING on your own control, yeah. Make sense? Do you have

    Spy++
    >> >> installed?
    >> >> >> >That's the quick/easy way to figure out what messages to watch

    for.
    >> >> >> >
    >> >> >> >Later... Karl
    >> >> >> >--
    >> >> >> >http://www.mvps.org/vb
    >> >> >> >
    >> >> >> >
    >> >> >> >
    >> >> >> >
    >> >> >> >> "Karl E. Peterson" <karl@mvps.org> wrote:
    >> >> >> >> >Hi Val --
    >> >> >> >> >
    >> >> >> >> >> I am trying to create my own ActiveX control and I need this

    >> control
    >> >> >> behaves
    >> >> >> >> >> depending on current size of parent control. How can I define

    >> in
    >> >> my
    >> >> >> ActiveX
    >> >> >> >> >> control if parent control has changed its size?
    >> >> >> >> >
    >> >> >> >> >You'll need to hook the message stream of the parent, and watch

    >> for
    >> >> relevent
    >> >> >> >> window
    >> >> >> >> >messages (WM_SIZE, WM_SIZING, etc.) If you're unfamiliar with

    >> this
    >> >> technique,
    >> >> >> >> see
    >> >> >> >> >HookMe.zip or Grabber.zip on my web site.
    >> >> >> >> >
    >> >> >> >> >Later... Karl
    >> >> >> >> >--
    >> >> >> >> >http://www.mvps.org/vb
    >> >> >> >> >
    >> >> >> >> >
    >> >> >> >>
    >> >> >> >
    >> >> >>
    >> >> >
    >> >>
    >> >

    >>

    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center