I am converting some functions to DLLs that relate to the functionality of Windows 7. I cannot pass TForm through a DLL, so I need to pass its handle. Also, as soon as I have this descriptor on the other hand, how can I restore it back to the TForm instance? Also, what is the way to pass a descriptor (HWND) through a Delphi DLL for compatibility with a C # call, for example?
If this is not possible, at least I need to know how to change the window color only using the window API, not referring to TForm. The goal is that inside this DLL you need to somehow change the color of the form. Passing a DLL descriptor is not a problem, but how to use this descriptor to work with the form that the descriptor represents?
What Iām doing on purpose is to put together a single DLL that contains everything necessary for a Delphi7 application to be compatible with Windows7, for example, draw glass by correctly displaying several forms on the taskbar (and minimizing forms), showing green progress in the taskbar icon and everything that can be involved. This type of work requires modification of the form. I need to be able to make these changes from a DLL.
source share