Re: DBGrid and comboboxes

From: Maarten Wiltink (maarten_at_kittensandcats.net)
Date: 10/05/04


Date: Tue, 5 Oct 2004 09:05:22 +0200


"AlanGLLoyd" <alanglloyd@aol.com> wrote in message
news:20041005012911.06839.00000613@mb-m15.aol.com...
> In article <I0k8d.176$Km6.3270@news4.e.nsc.no>, "Bjørge Sæther"
> <bjorge@hahaha_itte.no> writes:

>> TMyHackDBGrid(DBGrid1).InplaceEditor.Perform(wm_KeyDown, VK_DOWN,
>> $20000000); // drops down the list

> Shouldn't that be $40000000. My copy of MSDN says of the bits settings
> in WM_KEYDOWN lParam ...
>
> "Bit 29 Specifies the context code. The value is always 0 for a
> WM_KEYDOWN message .
> Bit 30 Specifies the previous key state. The value is 1 if the key is
> down before the message is sent, or it is 0 if the key is up."

The perfect argument for named constants. Expressed as (1 shl 30), of
course.

Groetjes,
Maarten Wiltink



Relevant Pages

  • Re: Spying a directory (on windows 98)
    ... "AlanGLLoyd" wrote in message ... Groetjes, ... Maarten Wiltink ...
    (comp.lang.pascal.delphi.misc)
  • Re: DBGrid and comboboxes
    ... "AlanGLLoyd" wrote in message ... >> This calls for a prefix convention that distinguishes between bit ... Groetjes, ... Maarten Wiltink ...
    (comp.lang.pascal.delphi.misc)
  • Re: how create a dll callback ?
    ... "AlanGLLoyd" wrote in message ... (No other mistakes? ... Groetjes, ... Maarten Wiltink ...
    (alt.comp.lang.borland-delphi)
  • Re: Programming psychology experiments in Windows environment
    ... "AlanGLLoyd" wrote in message ... Running a truecolour SVGA screen at 85 Hz, a totally new display for ... Groetjes, ... Maarten Wiltink ...
    (comp.lang.pascal.delphi.misc)
  • Re: use app via Send to menu
    ... "AlanGLLoyd" wrote in message ... "One can lead a poster to knowledge but one cannot make ... Groetjes, ... Maarten Wiltink ...
    (comp.lang.pascal.delphi.misc)