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