Discussion: TrueTransparency v1.3
Afficher un message
#28
Vieux 15/01/2010, 09h27
Lefreut
-
Avatar de Lefreut
Team CustomXP.net
Date d'inscription : août 2003
Messages : 5 816
Lefreut est déconnecté
Hi,

Citation:
Envoyé par fire_rabbit Voir le message
Hi,
I'm a C++ coder and i want to know whether the TT would be updated some day since the releasing of the windows 7.
I may suggest you something about the TT' developing: One is about the moving of a window. The TT seems using MoveWindow or SetWindowPos to move the 'cliented'-main window when user drag the title of the window by mouse. however it shows asynchronized moving. I suggest you to use BeginDeferWindowPos-DeferWindowPos-EndDeferWindowPos instead of other APIs to moving glass-rectangle and its clipped main window. Although it may let you write more code in there. But, because the glass-rectangle must be moved by DeferWindowPos not by system directly in this method, the mouse-click-and-drag must also be emulated by loging the mouse-clicked coordinate => set mouse capture => move => release capture when a WM_RBUTTONUP was recieved.
The other is ... All right, i forgot now, i will tell you later if i remembered.
I already use DeferWindowPos

Citation:
Envoyé par fire_rabbit Voir le message
The other thing is, when used the Asian languaged XP (like Chinese ver.), The title-text on the window's title-bar could be draw corrupted if the title string contains the local-language characters. I don't know how this bug comes out. I guess that you have used the GDI api to draw text string to a per-pixel-alpha bitmap(trsnf from PNG). Most of them do not check the null-terminating character for ending string, they always use the legth you provided to as the real length of the string. so you guys passed incorrected value as the length, caused more characters after a null-terminating character also being painted out.
I don't know how to reproduce this bug because I only have French and English XP. If you have an idea, I can try to fix this bug.

Haut de page