Index: reactos/base/shell/explorer/traywnd.cpp =================================================================== --- reactos/base/shell/explorer/traywnd.cpp (revision 74900) +++ reactos/base/shell/explorer/traywnd.cpp (working copy) @@ -62,7 +62,7 @@ const GUID IID_IShellDesktopTray = { 0x213e2df9, 0x9a14, 0x4328, { 0x99, 0xb1, 0x69, 0x61, 0xf9, 0x14, 0x3c, 0xe9 } }; class CStartButton - : public CWindow + : public CWindowImpl { HIMAGELIST m_ImageList; SIZE m_Size; @@ -162,11 +162,25 @@ hExplorerInstance, NULL); + SubclassWindow(m_hWnd); + if (m_hWnd) Initialize(); return m_hWnd; } + + LRESULT OnLButtonDown(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled) + { + GetParent().PostMessage(TWM_OPENSTARTMENU); + return 0; + } + + + BEGIN_MSG_MAP(CStartButton) + MESSAGE_HANDLER(WM_LBUTTONDOWN, OnLButtonDown) + END_MSG_MAP() + }; class CTrayWindow : @@ -2696,7 +2710,6 @@ if ((HWND) lParam == m_StartButton.m_hWnd) { - PopupStartMenu(); return FALSE; }