Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Another listview keybd_event question

Status
Not open for further replies.

Wings

Programmer
Feb 14, 2002
247
US
Hi, I have the keybd_event working well, where i send a series of keybd_events to the listview and it adjusts the selected item accordingly. However, for some reason it never seems to act on the '/' character, it just seems to ignore it. Any one have any ideas?

DbLVehicleID1->SetFocus();
unsigned char cVehicleID[7];

BYTE key;
strcpy(cVehicleID,Edit1->Text.c_str());
key = (BYTE)cVehicleID[ListIndex];
keybd_event(key,0,0,0);

ListIndex++;
key = 0;

if (ListIndex >= Edit1->Text.Length())
{
ListIndex = 0;
ListSelectionTimer->Enabled = false;
}

here is my code if any one has a clue as to the problem.
The code is in a timer event.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top