Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CHANGE COLOUR OF TOOLBAR
#8
Gintaras Wrote:In a toolbar:
Code:
Copy      Help
Macro197 :mac "Macro197" "" GetWindow(val(_command) GW_OWNER)

In the macro (first line):
Code:
Copy      Help
function hwnd

hwnd will be toolbar owner window handle.
This works great for the toolbar, but the menus that I have placed on the toolbar do not work now

Code:
Copy      Help
Save File to Distribution :mac "SaveFileD" "" GetWindow(val(_command) GW_OWNER) * S:\Shared\icons\savefd.ico
Email File :mac "EmailFile" "" GetWindow(val(_command) GW_OWNER) * S:\Shared\icons\email.ico

This is a snippet from a menu that I have on the tool bar. When the function gets called, the hwnd is 0.

El Brooks


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)