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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get the last typed char on the"MS Forms 2.0 textbox" activeX

Status
Not open for further replies.

jolma

Programmer
Dec 4, 2002
1
US
When mapping the message KeyPress of a "MS Forms 2.0 textbox" activeX with the Class Wizard, the following code is generated :

ON_EVENT(CDialog_Fille, IDC_ESSAIMSBOX, -603 /* KeyPress */, OnKeyPressEssaimsbox, VTS_DISPATCH)

associated to the method
void CDialog_Fille::OnKeyPressEssaimsbox(LPDISPATCH KeyAscii)
{
// TODO: Add your control notification handler code here
}
I just want to read the Ascii char, but idon't know how to extract it from the LPDISPATCH structure.

Could somebody help me. Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top