Connecting Tech Pros Worldwide Forums | Help | Site Map

MFC Menu problem

Member
 
Join Date: Mar 2007
Posts: 100
#1: Jun 18 '07
Hi,
I have written a MFC code to display a dialog box.And i have a Menu which i want to display it in that dialog box.

BOOL CExoDialog::OnInitDialog()
{

CDialog::OnInitDialog();
CMenu *menu=(CMenu *)GetDlgItem(IDR_MENU1);

return TRUE;

}


This is the code.I want to know how to bring the menu to the dialog box?
pls help

Reply