Update Window With New Info after Button Clicked

Hey all, I solved my previous issue with the linker problem, and figured out how to attach actions to my buttons. I know some of you aren't thrilled there, but I am...

My question is thus: How do I get my window to update with a new display when one of my buttons is clicked?

For example, my Quit button has a function as follows:

void CWindow::handleButton()
{
int quit;

quit = MessageBox("Quit?", "Exiting", MB_ICONQUESTION|YESNO);

if(quit==IDYES)
{
DestroyWindow();
}
}

How do I get the other buttons to clear the window and display new information?
Topic archived. No new replies allowed.