getparyx - get subwindow origin coordinates
#include <curses.h> void getparyx(WINDOW *win, int y, int x);
Refer to getbegyx().