![]() The system informs you that the window you are working with is window number 142, for example. For example, when you work with a window (or a Delphi form), the system gives you a handle to the window. ![]() In Windows, a handle is a reference to an internal data structure of the system. Handle data types are implemented as numbers, but they are not used as such. The name of this data type is THandle, and the type is defined in the Windows unit as: Instead, we'll look at a few elements of Delphi's interaction with the operating system and a couple of techniques that Delphi programmers can benefit from.Īmong the data types introduced by Windows in Delphi, handles represent the most important group. You would only want to take this approach for very special cases, such as the development of new Delphi components based on unusual API calls, and I don't want to cover the details. Nonetheless, programmers who want to use some special techniques not supported by the VCL still have that option in Delphi. The cover of the 4th edition of Essential Pascal,ĭelphi provides a complete encapsulation of the low-level Windows API using Object Pascal and the Visual Component Library (VCL), so it is rarely necessary to build Windows applications using plain Pascal and calling Windows API functions directly.
0 Comments
Leave a Reply. |