Originally posted by jef@Jul 31 2003, 05:40 PMI tried working with "Y" to see if he could implement the same logic that stardock did so that the technique used to force shadows in WindowFX would work in Y'z shadow. Unfortunately I think the language barrier got in the way. If anyone wants to give it a try, here's how it works.
All windows in MS Windows have what are called windows "Properties". There can be any number of user defined properties assigned to a window. The SetProp() API is used to assign a property to a window. GetProp() is the API to read the properties assigned to a window. Neil Banfield at Stardock modified the WindowFX program to look for an "ADDSHADOW" property on a window. If the property exists, WindowFX will put a shadow on the window. If Y'z shadow program was modified to look for the same attribute, then my AddShadow program would work for both WindowFX and Y'z Shadow. Here is how I implement the property setting in VB:
Declare Function SetProp Lib "user32" Alias "SetPropA" (ByVal hWnd As Long, ByVal lpString As String, ByVal hData as Long) As Log
SetProp MyWindow.hWnd, "ADDSHADOW", 1
Hope this helps.
-jef
What's the value of the define ADDSHADOW ?
Aqua-Soft Forums
but it works