title: Custom back ground for owner drawn menu
body: <p>Im using mfc to draw a custom menu except it has a nasty looking border around it. How do i get rid of the border or draw over it?</p>
  
  <p>For example:</p>
  
  <p><img src="https://i.stack.imgur.com/q8qtL.png" /></p>
  
  <p>(the white border around the edge)</p>
  
  <p>Edit:</p>
  
  <p>i know its only three hours left but none of the things below work. I have tried them using the following code:</p>
  
  <pre><code>    HWND hwnd = m_pParent-&gt;getBrowserHWND();
      uint32 style = GetWindowLong(hwnd, GWL_STYLE);
  
      SetWindowLong(hwnd, GWL_STYLE, style&amp;~WS_BORDER);
      SetWindowPos(hwnd, 0, 0, 0, 0, 0, SWP_FRAMECHANGED);
  
      HookHwnd hook(hwnd);
      int res = TrackPopupMenu((HMENU)menu.GetHMenu(), TPM_LEFTALIGN|TPM_RIGHTBUTTON|TPM_RETURNCMD|TPM_RECURSE, xPos, yPos, 0, hwnd, NULL);
  
      SetWindowLong(hwnd, GWL_STYLE, style);
  </code></pre>