+void MyFrame::OnAngle (wxCommandEvent &)
+{
+ long degrees = (long)((180*m_angle)/M_PI);
+ degrees = wxGetNumberFromUser(_T("Change the image rotation angle"),
+ _T("Angle in degrees:"),
+ _T("wxWindows rotate sample"),
+ degrees,
+ -180, +180,
+ this);
+ if ( degrees != -1 )
+ m_angle = (degrees * M_PI) / 180.0;
+}
+