I know there are two ways to create a control:

1. using resource:
Code:
EDITTEXT        IDD_CONTROL, 10, 50, 80, 14, ES_AUTOHSCROLL
2. creating the window yourself:
Code:
CreateWindowEx(NULL, "Edit", "", WS_CHILD | WS_VISIBLE, 
10, 50, 80, 14, hDlg, (HMENU)IDD_CONTROL, 
GetModuleHandle(NULL), NULL);
As you may noticed, the location and size is the same: 10, 50, 80, 14.
The problem is the way the CreateWindowEx() fucntion sees the value, which is different than the way the resource sees it.

Is there any way I could match them?



Thank you.