Ok, so far we talked about sending a string to Windows API. But what
about the inverse?

Consider this code:

function TGDIWindow.GetTitle: String;
var
 l: Integer;
begin
   l := Windows.GetWindowTextLength(Handle);
   SetLength(Result, l);
   Windows.GetWindowText(Handle, @Result[1], l);
end;

How can it be unicode enabled? It´s from fpGUI, not lazarus, but
should be a good example. I tryed to unicode it, but got a lost in the
way.

--
Felipe Monteiro de Carvalho

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to