dviewerwin->mainwin