Weird thing where menu in win32 resource file does not show as a variable in the code

Daniel Shepherd 246 Reputation points
2021-07-15T01:15:08.517+00:00

I am implementing win32 menus, and I always come across a small problem. for example, if I create a menu and the id is ID_EXAMPLEMENU, and I want to make it so that once I click it, it will open a dialog box. So, when I make a case statement for that, it does not show it as a variable (and I have included resource.h) Does anyone have a fix?

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,523 questions
{count} votes