Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "WinAPI";
Текущий архив: 2002.07.29;
Скачать: [xml.tar.bz2];

Вниз

Частота обновления в Win9x монитора   Найти похожие ветки 

 
Proton   (2002-05-18 22:54) [0]

В сабже все сказанно.
Чтотать из реестра не предлогать, только брать с экрана.


 
anod   (2002-05-19 11:20) [1]

http://delphi.mastak.ru/articles/display/index.html


 
Proton   (2002-05-20 10:11) [2]


> anod © (19.05.02 11:20)
> http://delphi.mastak.ru/articles/display/index.html

В вин 95 частота не определяется укаанной функцией.Win32.hlp (nt only)
Как бы сказать что бы не обидеть, указанная страничка вообще не к месту. :)


 
anod   (2002-05-20 20:53) [3]

Из Хелпа:
The EnumDisplaySettings function obtains information about one
of a display device"s graphics modes. You can obtain information for all of a display device"s graphics modes by making a series of calls to this function.

BOOL EnumDisplaySettings(

LPCTSTR lpszDeviceName, // specifies the display device
DWORD iModeNum, // specifies the graphics mode
LPDEVMODE lpDevMode // points to structure to receive settings
);


Parameters

lpszDeviceName

Pointer to a null-terminated string that specifies the display device whose graphics mode the function will obtain information about.
This parameter can be NULL. A NULL value specifies the current display device on the computer that the calling thread is running on.
If lpszDeviceName is not NULL, the string must be of the form \\.\DisplayX, where X can have the values 1, 2, or 3.
Windows 95: lpszDeviceName must be NULL.

iModeNum

Index value that specifies the graphics mode for which information is to be obtained.
Graphics mode indexes start at zero. To obtain information for all of a display device"s graphics modes, make a series of calls to EnumDisplaySettings, as follows: Set iModeNum to zero for the first call, and increment iModeNum by one for each subsequent call. Continue calling the function until the return value is FALSE.
When you call EnumDisplaySettings with iModeNum set to zero, the operating system initializes and caches information about the display device. When you call EnumDisplaySettings with iModeNum set to a non-zero value, the function returns the information that was cached the last time the function was called with iModeNum set to zero.

lpDevMode

Pointer to a DEVMODE structure into which the function stores information about the specified graphics mode.
The EnumDisplaySettings function sets values for the following five DEVMODE members:

dmBitsPerPel
dmPelsWidth
dmPelsHeight
dmDisplayFlags
dmDisplayFrequency



Return Values

If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
The function fails if iModeNum is greater than the index of the display device"s last graphics mode. As noted in the description of the iModeNum parameter, you can use this behavior to enumerate all of a display device"s graphics modes.

!!!!!!!

EnumDisplaySettings
Windows NT Yes
Win95 Yes
Win32s No
Import Library user32.lib
Header File winuser.h
Unicode WinNT
Platform Notes None




 
anod   (2002-05-20 20:56) [4]

По-моему надпись
Win95 Yes
о чем-то говорит???

а тебе нужно свойство dmDisplayFrequency

Вы не внимательно прочитали статью:
Если lpDevMode равно nil, из реестра берется информация о видеорежиме установленном по умолчанию. Передавая в lpDevMode nil и в dwFlags 0 можно получить настройки текущего видеорежима.


 
Proton   (2002-05-21 19:27) [5]

>anod © (20.05.02 20:56)
>По-моему надпись
>Win95 Yes
>о чем-то говорит???
Пршу прощения - уже юзал но на это не обратил внимания - думал что через cm.RFR:=GetDeviceCaps(Display,VREFRESH);

Еще раз прошу прощения. Если интересно вот мой проект
http://www.freeusoft.hut.ru/cgi-bin/download.php
Если там нет то бомби письмами админа или меня :)



Страницы: 1 вся ветка

Форум: "WinAPI";
Текущий архив: 2002.07.29;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.45 MB
Время: 0.007 c
4-95604
Yerba
2002-05-20 23:46
2002.07.29
Bitmap -> Icon


3-95225
Ильдар
2002-07-08 11:45
2002.07.29
Разработка БД.


1-95283
ION T
2002-07-17 01:40
2002.07.29
Как вызвать диалог Run


1-95298
firsor
2002-07-17 09:51
2002.07.29
Как создать непрямоугольную форму


1-95320
_Alex_
2002-07-17 22:47
2002.07.29
StringGrid сортировка





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский