{
HWND hWndCtrl;
LoadAtl();
hWndCtrl = CreateWindowEx(
(DWORD) 0 , // nExStyle
(LPCTSTR) "AtlAxWin" , // cClsName
(LPCTSTR) hb_parc( 1 ) , // cProgId
(DWORD) WS_OVERLAPPEDWINDOW , // style
CW_USEDEFAULT , // nLeft
CW_USEDEFAULT , // nTop
0 , // nWidth
0 , // nHeight
HWND_DESKTOP , // oParent:handle
0,
0,
NULL );
hb_retnl( (long) hWndCtrl );
}
Oque yo devo hacer para que este windows seja creado dentro de
um windows passado por mi, como alterar ?
OleWeCreate(cProgId)
Atualmente es assi creio que seja algo como isto:
OleWeCreate( ownd:hWnd, progid, nleft, ntop, nwidth, nheight )
HB_FUNC( OLEWECREATE )
{
HWND hWndCtrl;
LoadAtl();
hWndCtrl = CreateWindowEx(
(DWORD) 0 , // nExStyle
(LPCTSTR) "AtlAxWin" , // cClsName
(LPCTSTR) hb_parc( 2 ) , // cProgId
(DWORD) WS_OVERLAPPEDWINDOW , // style
(INT) hb_parc( 3 ) , // nLeft
(INT) hb_parc( 4 ) , // nTop
(INT) hb_parc( 5 ) , // nWidth
(INT) hb_parc( 6 ) , // nHeight
hb_parc( 1 ) , // oParent:handle
0,
0,
NULL );
hb_retnl( (long) hWndCtrl );
}
Antonio,
estoy hacendo assim pero no sei o que estas de errado que no fica em
la wuindow ownd.
gostaria de criar algo igual ao @ 0,0 ActiveX oact .......
@ 1,1 cActive oct id progid of ownd width 300 height 400
i sobre o
Ownd:oClient = activex ?
como hacer com cActiveX ?
![Question :?:](./images/smilies/icon_question.gif)