🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #14724

Input language of the foreground window ?!!

#14724
From: DRE
Date: Mon, 04 Aug 2003 07:53
12 lines
1360 bytes
Good Day,

I want to capture the input language of the current foreground window and
make my application "which will be running in another thread in the
background, maybe it will be shown as a tray icon " receive and have the
same input language as the foreground one
I used GetForegroundWindow() to get the foreground then I don't know what
parameter should I send to the GetKeyboardLayout() function to get the
foregound's input language not my application's input language

Thanks in advance,
DRE
Technical Details
Message-ID: <3f2e0f85@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,d1dc5ece26c5940,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-08-04 01:16:18 PST
From: "DRE" <dre00x@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Input language of the foreground window ?!!
Date: Mon, 4 Aug 2003 10:53:07 +0300
Lines: 14
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
NNTP-Posting-Host: 62.68.242.249
Message-ID: <3f2e0f85@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1059983237 62.68.242.249 (4 Aug 2003 00:47:17 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail