TRACE("MouseDown %d\n", m_isLButtonDown);
- BOOL isTracking = FALSE;
if (entry)
{
ScreenToClient(child, &pt);
iHitTestResult = SendMessageW(child, TB_HITTEST, 0, (LPARAM) &pt);
- isTracking = entry->mb->_IsTracking();
if (iHitTestResult >= 0)
{
TRACE("MouseUp %d\n", m_isLButtonDown);
- BOOL isTracking = FALSE;
if (entry)
{
ScreenToClient(child, &pt);
iHitTestResult = SendMessageW(child, TB_HITTEST, 0, (LPARAM) &pt);
- isTracking = entry->mb->_IsTracking();
if (iHitTestResult >= 0)
{
DbgPrint("PopMenuBar %p\n", mb);
+ if (m_current == m_entryUnderMouse)
+ {
+ m_entryUnderMouse = NULL;
+ }
+
hr = PopFromArray(&type, &mbc, NULL);
if (FAILED_UNEXPECTEDLY(hr))
{
DbgPrint("PopMenuPopup %p\n", mb);
+ if (m_current == m_entryUnderMouse)
+ {
+ m_entryUnderMouse = NULL;
+ }
+
hr = PopFromArray(&type, &mbc, NULL);
if (FAILED_UNEXPECTEDLY(hr))
{