You need more than just the resource ID. There is more to do.
Define a member function
CMenu m_mnYourMenu;
As part of initilizing your dialog, you need to load this menu.
m_mnYourMenu.LoadMenuW(IDR_MENU_YOURMENU);
Then you add an event and a callback for that event. If you share more details and more code, we can help more.