Hi with today snapshot of Lazarus there is problem with compiling with FPC1.9 compiler…
Show quoted text 8 lines
That's the problem: the LCL does not really emulate. It makes porting easy. So, it provides most commonly used functions of Delphi applications. The LCL does not and can not guarantee, that they will work as the winapi documentation. For example a function creating a win32 api button does very different things in the gtk. Because most Delphi applications don't care for the details, the LCL work. That's the whole magic.
By using the real messages.pp (and the other win32 api units provided by fpc), one can use the real stuff. And this way a developer can write programs that are win32 specific without noticing. Of course, if a developer wants to write win32 specific stuff (like the win32 intf itself), he needs the real stuff. Therefore I applied the nonwin32 workaround. I just wish, there would be a better way, so that people wanting to write platform independent code can notice win32 specifics. But I don't know no better way. So, win32 developers have to live with it.
Mattias
