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. Edit control disappears from dialog [modified]

Edit control disappears from dialog [modified]

Scheduled Pinned Locked Moved C / C++ / MFC
help
2 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.
  • R Offline
    R Offline
    rp_suman
    wrote on last edited by
    #1

    I have an edit control in a CFormview dialog. The edit control is DDXed to a some special class which is giving hyperlink functionality. The control is disappearing or its background becomes same as the dialog sometime and when mouse cursor goes on top of it, it appears from then. It happens mostly when setting text on that control (by function call) and the control's class calls "RedrawWindow()", "InvalidateRect" & "UpdateWindow()" for the parent dialog(CFormView) of control when setting text on it. The problem is happening in Win XP system and not in Vista. The Formview is using "CreateSolidBrush()" and "FillRect()" function inside OnPaint() to change its back color. Any suggstion would be greatly appreciable..

    -- "Programming is an art that fights back!"

    modified on Thursday, March 19, 2009 1:14 PM

    C 1 Reply Last reply
    0
    • R rp_suman

      I have an edit control in a CFormview dialog. The edit control is DDXed to a some special class which is giving hyperlink functionality. The control is disappearing or its background becomes same as the dialog sometime and when mouse cursor goes on top of it, it appears from then. It happens mostly when setting text on that control (by function call) and the control's class calls "RedrawWindow()", "InvalidateRect" & "UpdateWindow()" for the parent dialog(CFormView) of control when setting text on it. The problem is happening in Win XP system and not in Vista. The Formview is using "CreateSolidBrush()" and "FillRect()" function inside OnPaint() to change its back color. Any suggstion would be greatly appreciable..

      -- "Programming is an art that fights back!"

      modified on Thursday, March 19, 2009 1:14 PM

      C Offline
      C Offline
      Code o mat
      wrote on last edited by
      #2

      Could it be that your edit is overlapped by some other control like a static for example?

      > The problem with computers is that they do what you tell them to do and not what you want them to do. < > Life: great graphics, but the gameplay sux. <

      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