MFC; data in edit box not upadting; Screen not getting refreshed RRS feed

  • Question

  • Is have developed an MFC application. where am using three EDIT box for displaying data.In the same dialogue I'm opening an image in windows photo viewer software using ShellExecute function. Once i open and close the image,data in the edit box will be erased. Screen is not getting refreshed. once i click the edit box data will appear again. How to solve this issue.

    Guys please help me out.

    Thanks in advance

    Tuesday, January 1, 2019 5:07 PM

All replies

  • <style type="text/css">@page { margin: 2cm } pre.cjk { font-family: "DejaVu Sans Mono", monospace } p { margin-bottom: 0.25cm; line-height: 120% } code.cjk { font-family: "DejaVu Sans Mono", monospace } </style>

    Try UpdateData(false);

    • true means Control=>Data

    • false means Data=>Control

    Sometimes you have to do

    UpdateData(true);// snapshot ALL controls data
    m_sNrAuto ="some text";// tweak the one you actually need updated
    UpdateData(false);// this pushes ALL data, not just the one you tweaked

    Wednesday, January 16, 2019 6:19 AM