* contrib/hbct/getsecrt.prg
* contrib/hbgd/gdbar.prg
* contrib/hbgd/gdbarcod.prg
* contrib/hbhttpd/tests/eshop.prg
* contrib/hbide/ideconsole.prg
* contrib/hbide/idemisc.prg
* contrib/hbodbc/browodbc.prg
* contrib/hbodbc/todbc.prg
* contrib/hbqt/hbmk2_qt.hb
* contrib/hbqt/tests/wvtqt.prg
* contrib/hbsqlit3/tests/hdbctest.prg
* contrib/hbtip/tests/tiptest.prg
* contrib/hbtip/thtml.prg
* contrib/hbwin/tests/olesrv1.prg
* contrib/hbwin/tests/testax.prg
* contrib/hbxpp/browdbx.prg
* contrib/hbxpp/tthreadx.prg
* contrib/xhb/cstruct.prg
* contrib/xhb/dirrec.prg
* contrib/xhb/dumpvar.prg
* contrib/xhb/htjlist.prg
* contrib/xhb/tcgi.prg
* contrib/xhb/tedit.prg
* contrib/xhb/thtm.prg
* contrib/xhb/ttable.prg
* contrib/xhb/xcstr.prg
* contrib/xhb/xhbcls.ch
* contrib/xhb/xhberr.prg
* contrib/xhb/xhbole.prg
* contrib/xhb/xhbtedit.prg
* doc/codebloc.txt
* doc/en/command.txt
* doc/en/objfunc.txt
* include/hbpers.ch
* include/std.ch
* src/common/expropt1.c
* src/compiler/hbmain.c
* src/debug/dbghelp.prg
* src/debug/dbgtarr.prg
* src/debug/dbgthsh.prg
* src/debug/dbgtobj.prg
* src/debug/dbgwa.prg
* src/debug/debugger.prg
* src/rdd/dbfntx/dbfntx0.prg
* src/rdd/hbsix/sxcompat.prg
* src/rdd/usrrdd/rdds/hscdx.prg
* src/rdd/usrrdd/rdds/rlcdx.prg
* src/rtl/browdb.prg
* src/rtl/browse.prg
* src/rtl/dirscan.prg
* src/rtl/errsys.prg
* src/rtl/hbini.prg
* src/rtl/listbox.prg
* src/rtl/tclass.prg
* src/rtl/tlabel.prg
* src/rtl/tobject.prg
* src/rtl/treport.prg
* utils/hbtest/rt_mt.prg
* some formatting (almost only whitespace)
* contrib/xhb/dirrec.prg
* src/rtl/dirscan.prg
! use directry.ch constants
* contrib/hbqt/tests/draggable.prg
! hbformat and manual formats/cleanups
* src/vm/maindllp/dllext.c
! fixed typo in recent addition
56 lines
1.4 KiB
Plaintext
56 lines
1.4 KiB
Plaintext
/*
|
|
* $Id$
|
|
*/
|
|
|
|
#include "hbgtinfo.ch"
|
|
#include "hbclass.ch"
|
|
#include "hbwin.ch"
|
|
|
|
REQUEST HB_GT_WVT_DEFAULT
|
|
|
|
PROCEDURE Main()
|
|
LOCAL oMSCAL
|
|
|
|
WAIT "Make sure we are 'Active Window'"
|
|
oMSCAL := HActiveX():Init( WAPI_GetActiveWindow(), "MSCAL.Calendar", 0, 0, 300, 300 )
|
|
WAIT "Press any key to exit"
|
|
|
|
HB_SYMBOL_UNUSED( oMSCAL )
|
|
|
|
RETURN
|
|
|
|
CREATE CLASS HActiveX
|
|
VAR oOLE
|
|
VAR hWnd
|
|
METHOD Init
|
|
METHOD Event
|
|
ERROR HANDLER OnError
|
|
DESTRUCTOR Close
|
|
ENDCLASS
|
|
|
|
METHOD Init( hWnd, cProgId, nTop, nLeft, nWidth, nHeight, cID ) CLASS HActiveX
|
|
LOCAL nStyle := WIN_WS_CHILD + WIN_WS_VISIBLE + WIN_WS_CLIPCHILDREN
|
|
win_AxInit()
|
|
::hWnd := WAPI_CreateWindowEX( 0, "AtlAxWin", cProgId, nStyle, nLeft, nTop, nWidth, nHeight, hWnd, 0 )
|
|
/* WAPI_SetWindowPos( ::hWnd, WIN_HWND_TOPMOST, 0, 0, 1, 1, hb_bitOr( WIN_SWP_NOSIZE, WIN_SWP_DRAWFRAME ) ) */
|
|
::oOLE := WIN_AxGetControl( ::hWnd, {| event, ... | ::Event( event, ... ) }, cID )
|
|
RETURN self
|
|
|
|
PROCEDURE Event( ... ) CLASS HActiveX
|
|
LOCAL cEvents := ""
|
|
LOCAL aEvents := { ... }
|
|
aEval( aEvents, {| xEvent | cEvents += HB_ValToStr( xEvent ) + ", " } )
|
|
wapi_OutputDebugString( cEvents )
|
|
RETURN
|
|
|
|
METHOD OnError() CLASS HActiveX
|
|
RETURN HB_ExecFromArray( ::oOLE, __GetMessage(), HB_AParams() )
|
|
|
|
METHOD Close() CLASS HActiveX
|
|
wapi_OutputDebugString( "Close" )
|
|
WAPI_DestroyWindow( ::hWnd )
|
|
::hWnd := NIL
|
|
::oOLE := NIL
|
|
wapi_OutputDebugString( "After Close" )
|
|
RETURN NIL
|