By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,952 Members | 1,438 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,952 IT Pros & Developers. It's quick & easy.

MFC Menu problem

100+
P: 100
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
Jun 18 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.