Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #6719

Re: transfer focus to Office

Subject Re: transfer focus to Office
From Camille Kater <katercam@pt.lu>
Date Fri, 28 Mar 2014 14:03:23 +0100
Message-ID <1396012637_5@vo.lu> (permalink)
References <72116452-155a-45d1-867f-c8d9b09e8e80@googlegroups.com> <661195ef-7d31-4516-8e16-ef17348782b6@googlegroups.com>
Lines 45
NNTP-Posting-Host 188.115.5.121
Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!news.vo.lu!not-for-mail
Newsgroups comp.lang.clipper.visual-objects
X-Trace vo.lu 1396012637 188.115.5.121 (28 Mar 2014 14:17:17 0100)
User-Agent Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0
MIME-Version 1.0
In-Reply-To <661195ef-7d31-4516-8e16-ef17348782b6@googlegroups.com>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Antivirus avast! (VPS 140328-0, 28/03/2014), Outbound message
X-Antivirus-Status Clean
Xref csiph.com comp.lang.clipper.visual-objects:6719

Show key headers only | View raw


Henry,

FindWindow requires 2 parameters:

HWND FindWindow(

LPCTSTR lpClassName,
  // pointer to class name
LPCTSTR lpWindowName
  // pointer to window name
);

Window name = caption of the window
  You can Write:
FindWindow(NULL_PSZ,String2Psz(<Window caption>)

Camille

On 28/03/2014 11:14, H_Fidler@yahoo.com wrote:
> Giorgio, thanks for the answer.
>
> I tried:
>     nHandle := FindWindow(String2Psz("Excel.exe"))
>
> And I received a compiler error:
>     Actual parameter is missing or default value not specified.
>
> Thanks for any help.
>
> Henry
>

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

transfer focus to Office H_Fidler@yahoo.com - 2014-03-20 05:03 -0700
  Re: transfer focus to Office "Willie Moore" <williem@wmconsulting.com> - 2014-03-21 09:05 -0500
  Re: transfer focus to Office H_Fidler@yahoo.com - 2014-03-21 14:53 -0700
    Re: transfer focus to Office Giorgio <ngpollarolo@hotmail.com> - 2014-03-21 15:59 -0700
    Re: transfer focus to Office Giorgio <ngpollarolo@hotmail.com> - 2014-03-21 16:03 -0700
  Re: transfer focus to Office H_Fidler@yahoo.com - 2014-03-28 03:14 -0700
    Re: transfer focus to Office Camille Kater <katercam@pt.lu> - 2014-03-28 14:03 +0100
      Re: transfer focus to Office H_Fidler@yahoo.com - 2014-03-31 04:58 -0700
  Re: transfer focus to Office Frans Wauters <info@wautersit.com> - 2014-03-31 06:29 -0700
  Re: transfer focus to Office Giorgio <ngpollarolo@hotmail.com> - 2014-03-31 13:36 -0700
    Re: transfer focus to Office H_Fidler@yahoo.com - 2014-04-04 12:54 -0700

csiph-web