Groups | Blog | Home
all groups > dotnet drawing api > april 2004 >

dotnet drawing api : Window co-ordinates to client co-ordinates


Saurabh
4/7/2004 2:10:47 PM
Dear All,

I have an application where I set the parent of my .NET form as the
MDIClient Window of the WIN32 parent application. For some reason, If I get
the location of this form, it is returned to me in the window co-ordinates
but if i set the location, it gets set in client co-ordinates. I deally I
would like to know whats going wrong and sort it out. otherwise as a
workaround, is there any way of converting the window co-ordinates to client
co-ordinates.

TIA,

--Saurabh

Bob Powell [MVP]
4/7/2004 6:01:31 PM
You can use the PointToClient and PointToScreen methods.

--
Bob Powell [MVP]
Visual C#, System.Drawing

All you ever wanted to know about ListView custom drawing is in Well Formed.
http://www.bobpowell.net/currentissue.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

Read my Blog at http://bobpowelldotnet.blogspot.com

[quoted text, click to view]

AddThis Social Bookmark Button