Summary: In the image below you will see 2 typical sliding window frame styles Whichever frame style you have always get the D dimension at the narrowest opening as shown It is also advisable to measure at the bottom center and top for the width and at the left center and right for the height taking the smallest of the measurements
Image Dimensions: 400 x 250
Image originally found here.