GetClientRect with initial window wrong?
-
Hi, I'm using RECT r; GetClientRect(hWnd,&r); CreateWindow(WC_EDIT,etc,etc,r.right,r.bottom....); to get the client area of my window and putting an edit control in there which should fit precisely. I noticed that the returned value for the first window created by the application is wrong. The height is 10 pixels short(about the same height as a titlebar). When used with any subsequently created windows the value is correct. Does anybody know what this is about? Maybe a bug?
-
Hi, I'm using RECT r; GetClientRect(hWnd,&r); CreateWindow(WC_EDIT,etc,etc,r.right,r.bottom....); to get the client area of my window and putting an edit control in there which should fit precisely. I noticed that the returned value for the first window created by the application is wrong. The height is 10 pixels short(about the same height as a titlebar). When used with any subsequently created windows the value is correct. Does anybody know what this is about? Maybe a bug?