RE: Combo BoxEx Notification

new topic     » topic index » view thread      » older message » newer message

> I have a major problem that is driving me nuts, it is also to deal with 
> the comboboex

<SNIP>
 
> --NMCBEENDEDITA
>  --{
> --        NMHDR hdr;
> --        BOOL fChanged;
> --        int iNewSelection;
> --        char szText[CBEMAXSTRLEN];
> --        int iWhy;
> --}
> 
> constant
>     NMHDR_hwndFrom                  = 0,
>     NMHDR_idFrom                    = 4,
>     NMHDR_code                      = 8,
>     NMCB_fChanged                   = 12,-- BOOL so needs only peek/poke
>     NMCB_iNewSelection              = 13,
>     NMCB_szText                     = 17,-- CHAR so needs only peek/poke
>     NMCB_iWhy                       = 18,
> 
> CBEN_FIRST                          = (-800),       
> CBEN_ENDEDIT                        = (CBEN_FIRST - 5),
> CBENF_RETURN                        = 2,

<SNIP>

Hiyas Jordah =)

Sorry to say, but your structure in Euphoria does not match that
from the C declaration.  You are reading NMCB_iWhy from the middle of 
the string variable declared before it...

char szText[CBEMAXSTRLEN];

This field is a string CBEMAXSTRLEN bytes long but your Euphoria struc 
your saying its only one byte which is incorrect... I dont have a copy 
of the structure here at work so I cant tell you offhand how many bytes 
it *should* be.  If I dont see another post from you later on tonight I 
will find it for you and repost.

Don Phillips

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu