How do I rotate the currently selected page in PDFView?

Q: I use PDFViewCtrl to view PDF in my app. Is there a way to set that
to where it just rotates the current page?


A: You can rotate the currently visible page in PDFViewCtrl along the
following lines:

Page pg = GetDoc().GetPage(GetCurrentPage());
pg.SetRotation(Page.Rotate.e_90);
UpdatePageLayout();