Re: Border focus when switching between apps

besh_at_cix.compulink.co.uk
Date: 04/21/04


Date: Wed, 21 Apr 2004 17:11:16 +0000 (UTC)

In article <9d41bf117cc323b9d62560603e7a58a6@news.teranews.com>,
1122@1122noexiste.net (GB Blanchard) wrote:

> The user clicks on the current app (NotePad, for example), and
> then clicks on a button in my app and my app inserts a char in
> NotePad.
>
> Visually, NotePad has the 'full' border colours at the beginning,
> then loses them to my app while the click takes place, and then
> gets them back after the char is inserted. That is Windows default
> behaviour.
>

Brad I think the only way to avoid focus switching is to use keyboard
hooks. Can you fire up an 'equivalent' action to clicking a button in your
app? Depending on what your program should send, you can define a key/key
combination that your program recognises to send the relevant character/s.
By installing a keyboard hook, you can simply send anything [within
reason] to the active Window. There will be no focus switching.

Neil Beshoori
NRB Systems UK



Relevant Pages

  • Re: Serial port monitoring
    ... All you want to do is read a character from a serial port. ... I would then have a loop that checks for char in serial buffer. ... Everything is done within my app. ...
    (microsoft.public.vc.mfc)
  • SendKey doesnt work with FormKeyUp
    ... This app sends a char to the window that the user has previously ... winname:= GetWindowTitleText; ...
    (comp.lang.pascal.delphi.misc)
  • Re: Border focus when switching between apps
    ... >then clicks on a button in my app and my app inserts a char in ... > Visually, NotePad has the 'full' border colours at the beginning, ... >gets them back after the char is inserted. ...
    (comp.lang.pascal.delphi.misc)
  • Re: CEditView and wide characters
    ... It's so the app uses the XP Theme or Visual Styles as well as the V6 edit ... supposedly fixed by not using a manifest in non-unicode apps. ... LockBuffer() ... >> LockBuffersupposed to be wide char? ...
    (microsoft.public.vc.mfc.docview)
  • Border focus when switching between apps
    ... The user clicks on the current app, and ... Visually, NotePad has the 'full' border colours at the beginning, ... gets them back after the char is inserted. ...
    (comp.lang.pascal.delphi.misc)