html - Move Window Form with the help of javaScript? -
i using mfc html dialog. remove tool window windows form. want create button or control position of windows form mouse in javascript or html. how idea?
i try code:
function movewidow() { settimeout(function () { this.resizeto(400, 300); this.moveto(0, 300); } , 100); } hresult cmfcapplication7dlg::onbuttonok(ihtmlelement* /*pelement*/) { /*cstringarray arrargs; ccomvariant varres; //arrargs.add(_t("1"));//you can add value cstringarray //arrargs.add(_t("2"));//if javascript function having arguments callclientscript(l"myfunction1", &arrargs, &varres); onok(); return s_ok;*/ cstringarray arrargs; ccomvariant varres; callclientscript(l"movewindow", &arrargs, &varres); return 0; }
Comments
Post a Comment