Hi I am creating an application in which a dialog box displays the contents of registers of some device in the binary format. I have ctreated some of the child window controls (edit controls) via the resource editor in Visual C++. And and I am trying to create a few more at run time (when processing the WM_INITDIALOG message). At run time, when i use the function GetWindowRect() function to get the position of an edit control that i created using the resource editor, i get values different than what i see in the resource file (.RC file). For example, the x and y coordinates of an edit control in the .RC file is (50, 42). The x & y coordinates for the same control when i use the function getWindowRect are (163, 221). I figure that the units must be different? I want to know what units are being used in both cases and what the convesion factor should be if I am creating more edit controls at run time that need to be aligned with the already created control through the resource editor.
Thankyou very much for your help.
Best Regards
Chandra
Thankyou very much for your help.
Best Regards
Chandra