CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2004
    Posts
    32

    deletion of control

    i am created n number of buttons dynamically at runtime, on a dialog.

    how can i delete a specific button at runtime.

  2. #2
    Join Date
    May 1999
    Location
    ALABAMA, USA
    Posts
    9,917

    Re: deletion of control

    You should define delete.

    Are you trying to detach window from a button object or delete MFC object?
    To dismiss window call DestroyWindow.
    To delete MFC object that was allocated on the heap call delete.
    There are only 10 types of people in the world:
    Those who understand binary and those who do not.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured