I don't have much experience in Win32 coding. I have created a window and placed some child windows (buttons) on my window. I want it so that when I click a button those child windows (i.e. the buttons) disappear and new options come up for what to do (meaning I have an "accounts" button and when you click it the accounts page should replace what is currently there). I have the msg loop set up fine so that when I click the accounts button the new child windows for the account pages do come up, but the old child windows that were on the original page are still there (e.g. the accounts button that I just clicked). How do I get rid of those original child windows?
I tried: RedrawWindow(m_hWnd, NULL, NULL, RDW_ERASENOW | RDW_ALLCHILDREN)
but that didnít do anything (m_hWnd is the handle to my main window). Is there a function I need to call to delete/hide all the child windows as I move from section to section, or if not, what else should I be doing to have it work as I want?