Quote Originally Posted by Beginner_MFC View Post
CRect is taking (int l, int t, int r , int b).. from resource editor how can i do CreareEx()?
Now look at the numbers you're passing in. Do they make sense?

If you use the dialog editor, you don't need to call any kind of create. And again, you don't need CreateEx. I only mentioned it previously because you were using an extended style. The extended style is what is causing you problems.

I used the toolbox and dragged an edit control onto a dialog. Making no changes, it looked exactly like what you wanted.