Hi,
How do i determine and set the Top and Left (x,y) of an object? in Win32API?
Printable View
Hi,
How do i determine and set the Top and Left (x,y) of an object? in Win32API?
What kind of object? For windows, try SetWindowPos and GetWindowPos (or is it GetWindowRect?), or MoveWindow.
say umm, Static, EDIT, etc.
That works like any other window.
so those STATIC, EDIT, controls are just like Windows? Is that why they can be created like windows too?
They're not like windows, they ARE windows. Remember when filling a WNDCLASS structure? You give the class a name and a window procedure.
Well, "STATIC", "EDIT" and the others are names of such predefined window classes, and their window procedures are part of Windows. That's all there is to them.