Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MoveWindow()...size problem 1

Status
Not open for further replies.

Elliott3

Programmer
Sep 5, 2002
347
CA
Can someone tell me what the units of measurement are for both in the Visual C++ environment and at runtime for the MoveWindow() function? The MoveWindow() are smaller, I need to know how to convert one to the other.

CES
 
Use pixel measurements in MoveWindow(). The VC++ IDE is "stupid" in this respect but if I recall, the logical units in the IDE are 1.5 times a pixel. I could be wrong!

Use GetClientRect() to get the window's 'pixel' measurement at run time (possibly in OnInitDialog()) - this is the best way to find the pixel measurement.

[hammer]
tellis.gif

[sup]programmer (prog'ram'er), n A hot-headed, anorak wearing, pimple-faced computer geek.[/sup]​
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top