It simply
must be a result of the code you have entered!
I just followed the directions given
here[
^], for creating an app with a webbrowser control in a dialog.
I just left the default dialog as it was and added a webbrowser control to it. After creating a member variable to access it with, I entered the following code into the event handler code for the OK button. Works exactly as advertised - pixel perfect. Right place, right size..
void CwebBrowserControlDlg::OnBnClickedOk()
{
MessageBox(L"Clicked It", L"Info", MB_OK);
m_Explorer.MoveWindow(0,0, 300, 100, true);