i am created n number of buttons dynamically at runtime, on a dialog.
how can i delete a specific button at runtime.
Printable View
i am created n number of buttons dynamically at runtime, on a dialog.
how can i delete a specific button at runtime.
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.