Enumerating Display Modes in DirectX
You can enumerate all the DirectX display modes available on a particular system. The Delphi TEnumModes object shows how to proceed. The example shows how to enumerate through the available display modes for a particular computer. You have the option of seeing modes specific to a particular refresh rate. The key here is to set up callback function that will be called once for each of the possible modes. Return S_FALSE from the callback to keep enumerating modes. |