It´OK.
- Code: Select all Expand view
- #include "Fivewin.ch"
function main()
public ownd, oOle
public left:=0, Top:=0, Right:=0, Bottom:=0
define window ownd
oOle:=ToleAuto():new("Codejock.CommandBars.13.0.0")
cToolA:=oOle:Invoke("Add","ToolBar", 0)
cToolB:=oOle:Invoke("Add","ToolBar", 0)
cToolC:=oOle:Invoke("Add","ToolBar", 0)
OleInvoke(cToolB,"GetWindowRect",@Left, @Top, @Right, @Bottom)
Activate Window oWnd
Return nil
Now trying use ToleWevent...
- Code: Select all Expand view
- #include "Fivewin.ch"
function main()
public ownd, oOle
public left:=0, Top:=0, Right:=0, Bottom:=0
define window ownd
oOle:=oleWevent():new(oWnd,"Codejock.CommandBars.13.0.0")
uOle:=oOle:oOle // <-- here is ToleAuto create in class OleWevent
cToolA:=uOle:Invoke("Add","ToolBar", 0)
cToolB:=uOle:Invoke("Add","ToolBar", 0)
cToolC:=uOle:Invoke("Add","ToolBar", 0)
OleInvoke(cToolB,"GetWindowRect",@Left, @Top, @Right, @Bottom) // error this line
Activate Window oWnd
Return nil
Link Class ToleEvent:
http://www.redstarsoft.com.br/oOle.rar