CodeGuru Forums -
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic Newsletters VB Forums Developer.com


Newest CodeGuru.com Articles:

  • Installing SQL Server 2008
  • Writing UDFs for Firebird Embedded SQL Server
  • [Updated] Shutdown Manager
  • Building Windows Azure Cloud Service Applications with Azure Storage and the Azure SDK

  • Search CodeGuru:
     



    Go Back   CodeGuru Forums > Visual C++ & C++ Programming > Managed C++ and C++/CLI
    FAQ Members List Calendar Search Today's Posts Mark Forums Read

    Managed C++ and C++/CLI Discuss Managed C++ and .NET-specific questions related to C++.

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1    
    Old August 2nd, 2005, 04:26 PM
    young2 young2 is offline
    Member
     
    Join Date: Jan 2005
    Posts: 36
    young2 is an unknown quantity at this point (<10)
    why control ID is not updated?

    I am developing a dialog form application, I have did many times , and anyting is going well. right now, I face a rare problem, when I add control to the dialog form, I change the ID name in the properity and I did not see update when I try to add variable to the control, I do not know what setting might cause this problem. even without changing the ID, I still could not see the default ID, except the IDOK, IDCANCLE, and 1001 (which I thing this is the ID number which I did not like, has no meaning).

    please help me to find out how to let the program automatically updated the ID, so that I can add variable or event easily.
    Reply With Quote
      #2    
    Old August 2nd, 2005, 06:22 PM
    g_gili's Avatar
    g_gili g_gili is offline
    Senior Member
     
    Join Date: Mar 2005
    Location: Romania,Cluj-Napoca
    Posts: 1,073
    g_gili is a name known to all (1000+)g_gili is a name known to all (1000+)g_gili is a name known to all (1000+)g_gili is a name known to all (1000+)g_gili is a name known to all (1000+)g_gili is a name known to all (1000+)g_gili is a name known to all (1000+)g_gili is a name known to all (1000+)g_gili is a name known to all (1000+)g_gili is a name known to all (1000+)
    Smile Re: why control ID is not updated?

    Quote:
    Originally Posted by young2
    I am developing a dialog form application, I have did many times , and anyting is going well. right now, I face a rare problem, when I add control to the dialog form, I change the ID name in the properity and I did not see update when I try to add variable to the control, I do not know what setting might cause this problem. even without changing the ID, I still could not see the default ID, except the IDOK, IDCANCLE, and 1001 (which I thing this is the ID number which I did not like, has no meaning).

    please help me to find out how to let the program automatically updated the ID, so that I can add variable or event easily.
    I faced this problem to. Lets say that you create a dialog based application your dialog is named IDD_DIALOG1(your classes are build to).
    You change your dialog name to IDD_MYDIALOG then you canot add variables because you changed your dialog ID. You have to change(to set in your header file your dialog ID in ex.CYourDialog.h at the data dialog
    ex:
    enum { IDD = IDD_YOURDIALOG}; //find this and set your current dialog
    Maybe this is the problem!
    Reply With Quote
    Reply

    Bookmarks
    Go Back   CodeGuru Forums > Visual C++ & C++ Programming > Managed C++ and C++/CLI


    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 10:05 AM.



    Acceptable Use Policy

    internet.comMediabistrojusttechjobs.comGraphics.com

    WebMediaBrands Corporate Info


    Advertise | Newsletters | Feedback | Submit News

    Legal Notices | Licensing | Permissions | Privacy Policy


    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
    Copyright WebMediaBrands Inc. 2002-2009