wxWindow::GetPosition

void GetPosition(int *x, int *y)

This gets the position of the window in pixels, relative to the parent window or if no parent, relative to the whole display.