On 3/25/2013 07:24, Dmitry Timoshkov wrote:
Nikolay Sivov <nsi...@codeweavers.com> wrote:

+    case WM_WINDOWPOSCHANGING:
+    {
+      HWND parent = GetParent(hwnd);
+      if (parent) infoPtr->hwndNotify = parent;
+      return DefWindowProcW(hwnd, uMsg, wParam, lParam);
+    }
What if an application subclasses tab and doesn't pass WM_WINDOWPOSCHANGING
to the original proc?
Then it will fail just like it does currently, and will work for the rest of the applications.
  Why not just call GetParent() every time when a
notification is being sent?
Because it won't work if you create a control without WS_CHILD.


Reply via email to