I modified The Trick's module to do multi-line tooltips. It involves setting and releasing a hook. I have historically been a VBA programmer so I am relatively new to hooks.
Upon examination of the Trick's code I noticed that it only has one set of variables so I am a bit puzzled how I can use it with multiple forms ina program. From what I have read I know that the hook is a thread hook and not a global hook.
Suppose I have 2 forms, one of which I want to do multi-line tooltips for all of the controls but not for the other. In the hook procedure there doesn't seem to be an hWnd passed for the form or the control. If there was then I could easily do the multiline for one and not the other. I don't want you to write any code for me but I would like to be pointed somewhere where I can learn how to do the hook for some forms but not others and for some controls on a form but not others. Thanks.
MountainMan
Upon examination of the Trick's code I noticed that it only has one set of variables so I am a bit puzzled how I can use it with multiple forms ina program. From what I have read I know that the hook is a thread hook and not a global hook.
Suppose I have 2 forms, one of which I want to do multi-line tooltips for all of the controls but not for the other. In the hook procedure there doesn't seem to be an hWnd passed for the form or the control. If there was then I could easily do the multiline for one and not the other. I don't want you to write any code for me but I would like to be pointed somewhere where I can learn how to do the hook for some forms but not others and for some controls on a form but not others. Thanks.
MountainMan