Hi, iam new to MFC programming and i was just wondering if someone could help me.

Iam after creating two resources called menu and dialog.

After creating then i ran into problems. I wanted to be able to click on the menu command that will then display the dialog box, but i cant seem to be able to get it working.If anyone could help it would be great.

Thanks
(iam using win32 application)

Member Avatar for jencas

Add an event handler by clicking the right mouse button on the menu entry in the resource editor. Populate this event handler with the statemants to open your dialog:

CYourDialog dlg;
dlg.DoModal();

Thanks very much i got it working now.....

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.