title: C++ Win32 Creating a Popup Menu From Resource
body: <p><img src="https://i.stack.imgur.com/zALHt.png" alt="Here is what it is doing"></p>
  
  <p>I am trying to load a popup "right click" menu, and use the resource file to define the menu items. The picture shows what is happening when I right click, it displays room for 2 items, which is correct, but doesnt show any text.</p>
  
  <p>In the .cpp:</p>
  
  <pre><code>POINT pt;
  pt.x = LOWORD (lParam);
  pt.y = HIWORD (lParam);
  ClientToScreen (hwnd, &amp;pt);
  HMENU hMenu = LoadMenu(NULL, MAKEINTRESOURCE(IDR_POPUPMENU));
  TrackPopupMenu (hMenu, TPM_RIGHTBUTTON, pt.x, pt.y, 0, hwnd, NULL);
  </code></pre>
  
  <p>and the resource:</p>
  
  <pre><code>IDR_POPUPMENU MENU DISCARDABLE 
  BEGIN
  MENUITEM "test",              IDM_TEST
  MENUITEM "Close",               IDM_CLOSE
  END
  </code></pre>
  
  <p>any idea on what I am donig wrong?</p>
  
  <p>Thanks.</p>
  
  <p>EDIT: I just tested, and clicking in the "no text displayed" areas, and it sends the correct message. What could be causing it to not display the text?</p>