Re: Accessing LPARAM param from SendMessage acts weird.

2018-11-05 Thread Mark Moorhen via Digitalmars-d-learn
Brilliant! Thanks John !

Re: Accessing LPARAM param from SendMessage acts weird.

2018-11-04 Thread John Chapman via Digitalmars-d-learn
On Sunday, 4 November 2018 at 19:06:22 UTC, Mark Moorhen wrote: Another Windows challenge: I'm trying to get the title of the active window even if it is from an external application. This is what I've come up with so far: import std.stdio; import core.sys.windows.windows; extern (Windows)

Accessing LPARAM param from SendMessage acts weird.

2018-11-04 Thread Mark Moorhen via Digitalmars-d-learn
Another Windows challenge: I'm trying to get the title of the active window even if it is from an external application. This is what I've come up with so far: import std.stdio; import core.sys.windows.windows; extern (Windows) void main() { HWND foreground = GetForegroundWindow();