I am trying to learn more about API programming using code i found at:
I noticed that it did not destroy the window when the program it creates is closed and i seem to have figured that out myself.
However, i put the code in to add a button to the form - but it is not deleted from memory when the program is closed.
Does anyone know how to delete a button created with CreateWindow?
I tried DestroyWindow() but it didn't work and i've looked on the internet but cannot find anything.