Dialog Refreshing in Visual C++ 2008

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tawanda diza
    New Member
    • Sep 2011
    • 29

    Dialog Refreshing in Visual C++ 2008

    Could someone help me on how i can refresh my dialog only once soon after it loads.
    This dialog has an edit box which displays text from the previous dialog of which i dont want it to do that, i hope refreshing it may help overcome this.

    thank you in advance.
  • johny10151981
    Top Contributor
    • Jan 2010
    • 1059

    #2
    it mean, when user is closing the dialog you are just hiding the window. use destroywindow function to destroy when user close the window. and use deferent method to re open the window

    Comment

    • tawanda diza
      New Member
      • Sep 2011
      • 29

      #3
      Hie Johny10151981

      Could you please show me a code snipet on how to destroy this window

      my code snippet is like as follows:

      Code:
      void ProcessTransaction(char MSGTYPE)
      {
      CAccNumDlg AccNumDlg;
      if(AccNumDlg.DoModal() == IDOK) 
      {
         if(memcmp(RspInfo.rspcode,"00",2) != 0) return;
         
        CAmntDlg amntDlg;
        if(amntDlg.DoModal() == IDOK) 
        {
        print();
        }
      }
      SO what i want here is to destroy the AccNumDlg and amntDlg after i clicked the ok button.

      hope this this helps

      thanks

      Comment

      • johny10151981
        Top Contributor
        • Jan 2010
        • 1059

        #4
        follow the link

        Comment

        • tawanda diza
          New Member
          • Sep 2011
          • 29

          #5
          thanks you very, let me try to implement that and see what happens

          Comment

          Working...