--
Ajay Kalra [MVP - VC++]
ajay...@yahoo.com
Note: Please post all replies to newsgroup only.
Asha Udupa <as...@robosoftin.com> wrote in message
news:OxwWxR9cAHA.852@tkmsftngp04...
Ajay Kalra wrote in message ...
#if (_WIN32_IE >= 0x0300)
#define ListView_SetCheckState(hwndLV, i, fCheck) \
ListView_SetItemState(hwndLV, i, INDEXTOSTATEIMAGEMASK((fCheck)?2:1),
LVIS_STATEIMAGEMASK)
#endif
--
Ajay Kalra [MVP - VC++]
ajay...@yahoo.com
Note: Please post all replies to newsgroup only.
Asha Udupa <as...@robosoftin.com> wrote in message
news:e5yT#$9cAHA.1332@tkmsftngp05...
But if i set fCheck to FALSE it selects the item & if i set that to TRUE it
deselects the item.
If i change the macro defination as
#if (_WIN32_IE >= 0x0300)
#define ListView_SetCheckState(hwndLV, i, fCheck) \
ListView_SetItemState(hwndLV, i, INDEXTOSTATEIMAGEMASK((fCheck)?1:2),
LVIS_STATEIMAGEMASK)
Then it works according to MSDN.
So i would like to know where is fault?
Asha