Printable View
All in the title
Try AfxGetMainWnd(). Sometimes you have to type cast it so it returns the pointer you are looking for.