MitchellH 0 Newbie Poster

Hi,

I am new to MFC and have been practicing and currently have run into a problem: I have a "Quit" button and its mapped to a function already but how do I abruptly end the program? What function do I call?

Thank you,
Mitchell H.

EDIT: Ive just added this and it works, but i'll keep this thread open for input:

void CPrestoClose2Dlg::OnQuit() 
{
	SendMessage(WM_CLOSE);
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.