is there any way to dock two windows(like Winamp does with panels), but one window is from my application(WinApi) and second is from other(not connected with my app) application? So if I move window from other app my window will “glue” with it and move same direction.
Share
Yes, that’s fairly easy. Use
SetWindowsHookEx(WH_CALLWNDPROCRET, otherHWND)to get theWM_MOVEmessage that will be generated wheneverotherHWNDmoves.