   removing windows api buttons
  I have recently started digging into windows api programming in C++ to help make my games look more polished. So far I have been able to create a window with buttons on it which perform simple actions (make noises, quit program) when pushed. Is what I eventually want to do is have a button that once clicked will remove all the current buttons on the screen and add different ones so the user can change game settings (primarily the controls configuration).I tried to search the internet for tutorials on this but couldn't find any that went beyond creating the windows and buttons. The only thing I found out while researching was that the book 'Windows Programming' by Charles Petzold appears to be a good resource, but I don't really want to purchase the book just to find out what I want isn't covered in it.Any help or suggestions to get me on the right track would be much appreciated. Oh and this is my first forum posting here so let me know if I made any etiquette or other posting mistakes.   
  THe simplest way I know is to use DestroyWindow and pass in the buttons HWND.   ;  You can make a window disappear but not be destroyed with ShowWindow(SW_HIDE) and then show it again with ShowWindow(SW_SHOW). If it has children all of its children will be hidden too.   ;  Awesome, thank you for the suggestions. I was able to achieve what I wanted with the ShowWindow() function.Thanks again!   