title: C++ Accelerator keys do not work
body: <p>I am having trouble getting Accelerators to work.  I am using C++.</p>
  
  <p>After my window is setup and shown.</p>
  
  <pre><code>MENUITEMINFOW mAbout;
  mAbout.cbSize = sizeof(MENUITEMINFO);
  mAbout.fMask  = MIIM_TYPE | MIIM_ID;
  mAbout.wID    = (UINT) ID_ABOUT;
  mAbout.fType  = MFT_STRING;
  mAbout.dwTypeData = (LPWSTR)L"&amp;About";
  
  InsertMenuItemW(HelpMenu,   0, TRUE, &amp;mAbout);
  </code></pre>
  
  <p>My menu is working just fine, and calls my "About" box, no issue there.</p>
  
  <p>Now, before the message loop, I load the accelerators:</p>
  
  <pre><code>// Load accelerators.
   HACCEL hAccelerators = LoadAcceleratorsW(hInstance, MAKEINTRESOURCEW(IDR_ACCELERATOR));
  </code></pre>
  
  <p>Then my main message loop:</p>
  
  <pre><code>while(GetMessageW(&amp;msg, NULL, 0, 0) &gt; 0) {
      if (! TranslateAcceleratorW(msg.hwnd, hAccelerators, &amp;msg)) {
          TranslateMessage(&amp;msg);
          DispatchMessageW(&amp;msg);
      }
  }
  </code></pre>
  
  <p>My WndProc Message handle (Again, works from the menu)</p>
  
  <pre><code>case WM_COMMAND: {
      if (HIWORD(wParam) == 0) {
          if (LOWORD(wParam) == 101) {
              testDialog(hInstance ,hWnd,(LPSTR)"Testing");
          }
          if (LOWORD(wParam) == ID_ABOUT) {
              DialogBox(hInstance, MAKEINTRESOURCE(IDD_ABOUTDIALOG), hWnd, &amp;AboutDialogProc);
              return 0;
          }
      }
      break;
  }
  </code></pre>
  
  <p>My resource.rc file:</p>
  
  <pre><code>//
  // Accelerator resources
  //
  LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
  IDR_ACCELERATOR ACCELERATORS
  {
      "a",    ID_ABOUT, VIRTKEY, ALT
  }
  </code></pre>
  
  <p>and my resource.h file:</p>
  
  <pre><code>#define IDR_ACCELERATOR                         122
  #define ID_ABOUT                                401
  </code></pre>
  
  <p>And... well, Alt-a does not bring up the about box.  I have walked all over the Microsoft
  Website, and was vary careful, but I can't find anything glaring I am doing different.</p>
  
  <p>I am on Windows 7 (64bit) using MinGW and compiling in the application for Unicode.</p>
  
  <p>Everything else works but this, what am I missing???</p>