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.
I don't know if this is possible in C++ because I program in C# but what you could try is:
Make 2 panels. Dock panel2 to the bottom. dock panel1 to fill. Place a splitter above panel2 so it can be resized.
I've used this solution before and it worked pretty well :).
Yes, that's fairly easy. Use SetWindowsHookEx(WH_CALLWNDPROCRET, otherHWND)
to get the WM_MOVE
message that will be generated whenever otherHWND
moves.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.