1

Topic: Alignment of windows on guides

All greetings. There is a task of alignment of all windows on guides, such "adhering" windows. With the windows of problems is not present: I re-record a position in event WM_WINDOWPOSCHANGING. Problems arise with windows of other processes. Tried to use . Under the description should approach  WH_GETMESSAGE, but the events connected to relocation of a window or change of its sizes, in it are not caught, i.e. they are not present generally.  WH_CBT not absolutely approaches, there events come after fulfillment of all actions. Actually, it is not clear, why messages WM_WINDOWPOSCHANGING, etc. in  WH_GETMESSAGE do not come. And, whether in the correct direction I go? Can such tasks dare substitution of window functions or something another, and I here with normal  dig. Though substitution, in my opinion, it somehow too, smells slightly of hacking and black magic. The project on.NET, dll on a C ++. UPD. For certain, similar subjects were already considered, I will be glad to links to similar subjects.

2

Re: Alignment of windows on guides

Hello, Lomion, you wrote: L> Actually, it is not clear, why messages WM_WINDOWPOSCHANGING, etc. Possibly do not come, they come directly to window procedure passing message queue. L> can such tasks dare substitution of window functions Imho, yes. Well also it is not necessary to forget that two are necessary , 32 and 64 bit.

3

Re: Alignment of windows on guides

Hello, Lomion, you wrote: L> Actually, it is not clear, why messages WM_WINDOWPOSCHANGING, etc. in  WH_GETMESSAGE do not come. L> And, whether in the correct direction I go? Can such tasks dare substitution of window functions or something another, and I here with normal  dig. Though substitution, in my opinion, it somehow too, smells slightly of hacking and black magic.   WH_CALLWNDPROCRET

4

Re: Alignment of windows on guides

Hello, Carc, you wrote: a C> Juzaem  WH_CALLWNDPROCRET

5

Re: Alignment of windows on guides

Hello, Carc, you wrote: a C> Hello, Lomion, you wrote: L>> Actually, it is not clear, why messages WM_WINDOWPOSCHANGING, etc. in  WH_GETMESSAGE do not come. L>> And, whether in the correct direction I go? Can such tasks dare substitution of window functions or something another, and I here with normal  dig. Though substitution, in my opinion, it somehow too, smells slightly of hacking and black magic. A C> Juzaem  WH_CALLWNDPROCRET PS: well still it is possible Accesbility-huk to stir up. But will work not everywhere. From pluses: 1) for Accessible-huka it is not is mandatory necessary DLL 2) This  puts on level , and will work even in applications with the raised rights. But not everywhere and not always. Any Guglohromy yes Operas and others quite often go . Depends with what-options collected the code of similar applications.

6

Re: Alignment of windows on guides

Hello, Lomion, you wrote: SetWinEventHook There there is a possibility to filter on events. 32+64, there all there is not necessary in one. But (as well as with normal ) events from the applications launched under the administrator, will not arrive. It is necessary most to be launched from the administrator.