|
-
Sep 12th, 2001, 02:21 PM
#1
Thread Starter
New Member
EnumDisplaySettings > Frequency returns in NT, but not 9X
Hi, I have another problem. Using EnumDisplaySettings no refresh rate frequency is returned in 9x, but works fine in nt/2k. In 9x only value 0 is returned. I am completely stuck on this, as I can set display modes on 2k/xp fine but have had to disable.
If anyone knows the way around this or has WORKING code please let me know.
Thanks,
Andrew
nvmax.com
Dim lindex As Integer
nv.display(2).Clear
Dim tDevMode As DEVMODE
tDevMode.dmSize = Len(tDevMode)
Do
If EnumDisplaySettings(Int(Right(devicenum, 1)) + displayn - 1, lindex, tDevMode) = 0 Then: Exit Do
lindex = lindex + 1
If Val(tDevMode.dmPelsWidth) & " by " & Val(tDevMode.dmPelsHeight) = nv.display(0).Text Then
If tDevMode.dmBitsPerPel & " Bits" = nv.display(1).Text Then
nv.display(2).AddItem tDevMode.dmDisplayFrequency & " Hertz"
End If
End If
Loop
-
Sep 13th, 2001, 10:16 AM
#2
Thread Starter
New Member
^ Damn I hope someone can help ?
Andrew
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|