I have developed a virtual keyboard, but each time I click on it, it snatches activation. Obviously, that is not how it should work. I tried SetWindowPos with SWP_NOACTIVATE, but that works only when setWindowPos, and at the next click, the window activates as usual.
I posted the question on SO, and someone advised :
Return MA_NOACTIVATE for the WM_MOUSEACTIVATE message.
I looked up WM_MOUSEACTIVATE in Msdn at https://msdn.microsoft.com/en-us/library/windows/desktop/ms645612(v=vs.85).aspx and it looks like that is indeed what is needed.
Now my problem is to implement it.
Paul Lefebvre showed me how to trap messages in https://forum.xojo.com/13860-prevent-window-from-moving?search=grab
I added the WndProcSubclassWFS and looked at msg in the WndProc method that is created by the interface. It gets lots of values, but I do not see any &h21.
What am I missing ?
TIA