Minimum Origin Version Required: Origin 9.1 SR0
Creates a HTML child window
Creates a HTML child window
BOOL CreateControl( HWND hWndParent, RECT * lpRect, int nID, DWORD dwStyle = 0 )
BOOL CreateControl( HWND hWndReplace, DWORD dwStyle = 0 )
Returns TRUE on success, FALSE on failure.
Returns TRUE on success, FALSE on failure.
EX1
#include <Control.h> void CreateControl_ex1(DhtmlControl& dhtmlctrl, Window& dlgParent) { RECT rect = {0,0,500,500}; dhtmlctrl.CreateControl(dlgParent.GetSafeHwnd(), &rect, 100); }
EX2
#include <Control.h> #define IDC_MY_HTML_PLACEHOLDER 100 void CreateControl_ex2(DhtmlControl& dhtmlctrl, Window& dlgParent) { Control ctrl = dlgParent.GetDlgItem(IDC_MY_HTML_PLACEHOLDER); dhtmlctrl.CreateControl(ctrl.GetSafeHwnd()); }
Control.h