<p>On Aug 1, 2011 10:25 AM, &quot;Alexandre Julliard&quot; &lt;<a href="mailto:julliard@winehq.org">julliard@winehq.org</a>&gt; wrote:<br>
&gt;<br>
&gt; Andy Clayton &lt;<a href="mailto:q3aiml@gmail.com">q3aiml@gmail.com</a>&gt; writes:<br>
&gt;<br>
&gt; &gt; +     itemMenu = MENU_GetMenu(hMenu);<br>
&gt; &gt; +     if (itemMenu == NULL)<br>
&gt; &gt; +         return FALSE;<br>
&gt; &gt; +<br>
&gt; &gt; +     if ((itemMenu-&gt;Height == 0 || itemMenu-&gt;Width == 0) &amp;&amp; itemMenu-&gt;wFlags ^ MF_POPUP)<br>
&gt;<br>
&gt; That flag test doesn&#39;t make sense. What are you trying to check here?<br>
&gt;</p>
<p>I am trying to check is if it is a menu bar, because in that case GetMenuItemRect works so long as the menu is attached to a window (according to MSDN, anyways). Is there a better way I should be checking this? I guess I overlooked MF_SYSMENU. I also now see that I should instead be calling MenuBarCalcSize, and that my testing has found it returning values even if not attached via SetMenu, though maybe they are not meaningful. Clearly I need to take a second look at this.</p>

<p>Sorry for so many mistakes.</p>
<p>Andy</p>