Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Problem disabling Controls in Win 2k

Problem disabling Controls in Win 2k

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Semlo
    wrote on last edited by
    #1

    I wrote a program with CFormViews containing several controls (CButtons, CEdit...) On certain events I enable or disable them using: GetDlgItem(IDC_WHATEVER)->EnableWindow(TRUE); or GetDlgItem(IDC_WHATEVER)->EnableWindow(FALSE); it works perfectly fine in Win 98 but wouldn't work in Win 2000, Controls just refuse to become gray and deactivated I've got ServicePack 5 installed and I've tried it on several Computers but with no success. What could be wrong?? Thanks in advance, Semlo

    N 1 Reply Last reply
    0
    • S Semlo

      I wrote a program with CFormViews containing several controls (CButtons, CEdit...) On certain events I enable or disable them using: GetDlgItem(IDC_WHATEVER)->EnableWindow(TRUE); or GetDlgItem(IDC_WHATEVER)->EnableWindow(FALSE); it works perfectly fine in Win 98 but wouldn't work in Win 2000, Controls just refuse to become gray and deactivated I've got ServicePack 5 installed and I've tried it on several Computers but with no success. What could be wrong?? Thanks in advance, Semlo

      N Offline
      N Offline
      Nish Nishant
      wrote on last edited by
      #2

      Are you sure the error is there? Maybe some other obscure problem is causing this. try debugging and trace through the valid code areas. If still unsuccessful, try posting some code snippets Nish Sonork ID 100.9786 voidmain www.busterboy.org If you don't find me on CP, I'll be at Bob's HungOut

      S 1 Reply Last reply
      0
      • N Nish Nishant

        Are you sure the error is there? Maybe some other obscure problem is causing this. try debugging and trace through the valid code areas. If still unsuccessful, try posting some code snippets Nish Sonork ID 100.9786 voidmain www.busterboy.org If you don't find me on CP, I'll be at Bob's HungOut

        S Offline
        S Offline
        Semlo
        wrote on last edited by
        #3

        Thanks Nish, it was indeed a stupid programming mistake which Win98 doesn't care about but win 2000 does..

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups