VCL RAD DirectX for C++ Builder

Welcome to

www.tdxlibrary.org

Home of the
the TDx_Library...

=- RAD DirectX =-

"RAD DirectX"
for
C++ Builder

...

Welcome to tdxlibrary.org Latest News

Development Tools Demo Applications Step-By-Step Tutorials Component Reference

Register our Tools Available Downloads

Frequently Asked Questions Links to other sites Information about the tdxlibrary.org website


    TDx_Draw_Library v2.00 Component Reference

    -= Click to navigate the reference =-
    Go to the Welcome Page

    [ TDx_Draw::EvaluateMode() ]     [ next: FlipToGDISurface() ]     [ prev: EnumSurfaces() ]

    public:

         virtual HRESULT __fastcall EvaluateMode( dword pFlags, dword* pSecondsUntilTimeout );





    -= Go to the TDx_Draw description =-    TDX_DRAW::EVALUATEMODE()   [ component method ]

    • Description

        The TDx_Draw::EvaluateMode method is used in conjunction with TDx_Draw::StartModeTest() to evaluate the maximum refresh rate possible for each screen resolution using the current combination of display adapter and EDID monitor.

        Call TDx_Draw::StartModeTest() to establish a set of testable resolutions and display the first video mode in that set. TDx_Draw::EvaluateMode() can then be used to step through the testable resolutions starting with the highest supported refresh rate for a given resolution. As soon as a given resolution passes the test any lower refresh rates for that resolution are skipped.

        There is a 15 second timeout when the test is started or when a mode is passed or failed. Calling TDx_Draw::EvaluateMode() with the Flags parameter set to 0 will retrieve the time remaining without interfering with the current test.

        Test termination or mode changes only occur when TDx_Draw::EvaluateMode() is called, but the current mode will always be failed if the call comes after the timeout period has passed.

        On completion, the following messages may be returned.
        DDERR_TESTFINISHED
        DDERR_NEWMODE

        If the method call fails, the OnError event will be triggered with one of the following values:
        DDERR_INVALIDOBJECT
        DDERR_INVALIDPARAMS
        DDERR_NOTFOUND

    • Parameters

        Flags
        The Flags parameter defines flags indicating the status of the mode being tested.
        The described effect applies when the flag is set.

          DDEM_MODEFAILED
          The video mode has failed or timed out at the current refresh rate.

          DDEM_MODEPASSED
          The video mode has passed the test at the current refresh rate.

        SecondsUntilTimeout
        The SecondUntilTimout parameter will reference the time remaining, in seconds, before the current mode is automatically failed.


    • See Also
    • Top





    If you would like to submit additions or improvements to this page, click: darren_john_dwyer@hotmail.com.



























Top

Welcome |  Latest News |  Tools |  Demos |  Tutorials |  Reference |  Register |  Downloads
FAQ |  Links |  Site Information

This page is Copyright © 2019 Darren John Dwyer, Australia. All Rights Reserved.
Borland C++ Builder, CBuilder, etc are Trademarks of Borland Corporation.
DirectX, DirectDraw, Windows, etc are Trademarks of Microsoft Corporation.