Direct X application using MFC. I need to get the position of the window.

The application was created using the DX9 App Wizard to give you some idea of what i am using. And i'm prity sure the best way to retrieve this information is to use the function OnMove(x,y) to get the position of the window. However the Three classes that are created for the applications main interface:
class CApp : public CWinApp
class CAppForm : public CFormView, public CD3DApplication
class CD3DApplication

However i get nothing if the function is used with CApp (the OnMove is never invoked (mainly because it is not a dialog window predictably :P)).
CAppForm only moves when the application is first started. Presumably because it is deffered to the drawing window and this is a child of the main window so the values of x and y only change on the very first draw of this window. And CD3DApplication is not a dirived class of and MFC class.

So does anyone have any ideas of how i could get the current position of the window whenever it is moved (i.e. where does to event function go)

[1015 byte] By [Cookman] at [2008-3-6]
# 1
I can be such a dunce sometimes :P Well the answer was simple the CWnd::GetWindowRect() functions inherited by the CFormView and subsiquently by the CAppForm created in the code return the windows form position of the left, right, top and bottom. With the only minor disadvantage being it is not message driven meaning i will need to call it every loop not when the event happens. But that is no minor gripe.

Atleast now i can get back to doing more of the interface. :)

Cookman at 2007-9-9 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: General...