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