I want to know that, so, what I should doing for that ?
--
Je voudrai connaitre le taux de rafraichissement de l'écran, celui qui est dans les options de l'utilisateur. Savez-vous comment faire ?
How to know the current Refresh Rate ?
Another way...
This seems to be another way to do it (note this is getting more than just frequency, hence the length of the code!)... it also returns the *current* display mode, so you don't have to parse each available mode in turn...
Code: Select all
#ENUM_CURRENT_SETTINGS = -1
#ENUM_REGISTRY_SETTINGS = -2
DefType.DEVMODE dm
EnumDisplaySettings_ (#NULL, #ENUM_CURRENT_SETTINGS, @dm)
m$ = "Width: " + Str (dm\dmPelsWidth) + Chr (10)
m$ + "Height: " + Str (dm\dmPelsHeight) + Chr (10)
m$ + "Depth: " + Str (dm\dmBitsPerPel) + Chr (10)
m$ + "Frequency: " + Str (dm\dmDisplayFrequency) ; FREQUENCY!
MessageRequester ("Display mode information...", m$, #MB_ICONINFORMATION)