Results 1 to 2 of 2

Thread: EnumDisplaySettings > Frequency returns in NT, but not 9X

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2001
    Posts
    15

    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

  2. #2

    Thread Starter
    New Member
    Join Date
    Sep 2001
    Posts
    15
    ^ 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
  •  



Click Here to Expand Forum to Full Width