aspect ratio of image crashing the program
问题 here is the code this code is to maintain the aspect ratio of the image it crashes when the control goes to int WindowRatio = WidthOfPreviewPane / HeightOfPreviewPane; can anyone give idea why ?? int WidthOfPreviewPane = RECTWIDTH(m_rcParent); int HeightOfPreviewPane = RECTHEIGHT(m_rcParent) ; int ImageRatio = WidthOfImage / HeightOfImage; int WindowRatio = WidthOfPreviewPane / HeightOfPreviewPane; if (WindowRatio > ImageRatio && WidthOfPreviewPane< WidthOfImage) { m_iFinalHeight =