Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GetToolbarOwner, does this new dll function still work on xp
#4
Ok this code stores the OWNER window handle of the window the Toolbar is attached to, into Global Variable ( w1 ) when the menu button is pressed. So in one of my functions that is on the menu ok so then when I run one of my functions off the menu on the toolbar say, "Function1" since I have int+ w1 in Function1 it will use that toolbars OwnerWindow handle to execute the code. But when I try to run the same function "Function1" off of another window, it will change the Global Variable ( w1 ) to the other toolbars owner window handle, makeing it stop on the first window, right when the menu button is pressed on another window. Then it will start on the other window. I don't understand why if the Global Variable is changed, it effects code that's already in a rep loop with the other toolbars owner window handle. Can you please help me think of an idea so that it will get Toolbars Owner Window , then store it into a Global Variable, but once the code is in a rep loop with the first toolbars owner window handle, it will not matter if that global variable ( w1 ) is changed to another toolbars owner window handle. and will continue on the other windows. Any ideas?


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)