#include "fivewin.ch"
function main()
public oWnd,oCommandbar,oToolA
public Left:=Top:=Right:=Bottom:=0
define window ownd
oCommandBar:= TOleWevent():New("Codejock.CommandBars.13.0.0",Ownd)
oCommandBar:AttachToWindow( oWnd:hWnd )
cToolA:=oCommandBar:Add("ToolBar", 0)
cToolA:GetWindowRect( @Left, @Top, @Right, @Bottom ) // GPF
// Gpf yet here
MsgInfo(Left)
MsgInfo(Top)
MsgInfo(Right)
MsgInfo(Bottom)
activate window ownd
return
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 93 guests