Posts: 1,271
Threads: 399
Joined: Mar 2003
how do i place my window options toolbar at the end of titlebar text ?
i mean that my toolbar is y=40px right of titlebar text.
i attach to every visible window this toolbar.
thanks.
Posts: 12,087
Threads: 142
Joined: Dec 2002
It probably is possible, but not simple. As I understand, the toolbar must be near the place where titlebar text ends. Why not in other place, for example near the Minimize button?
Posts: 1,271
Threads: 399
Joined: Mar 2003
Gintaras Wrote:Why not in other place, for example near the Minimize button?
because i find it more intuitive the have it left.
Posts: 12,087
Threads: 142
Joined: Dec 2002
Not all windows report about text change. A separate thread should periodically get foreground window text, compute text width (I tried GetWindowDC/GetTextExtent32/ReleaseDC, but here it is not accurate) and move toolbar if necessary.