S
Steve Behman
Look as I may, I cannot find a general discussion about the information
available to an Event Handler in Visual C++ 8.0 Express Edition.
In particular I am trying to manage the contents of the TextBox.
I have figured out a rather painful way of handling the "text changed" event
but, it takes saving the contents and cursor position from the last event of
this type in order to compare it to the "new" content and then altering the
current content appropriately.
I feel that there must be some way to use the PreviewKeyDown event to
examine the proposed change and, if it is unacceptable to beep the user and
reject the keystroke.
A specific solution to what I want to accomplish would be appreciated. Even
more so a pointer to a document that*fully* discusses the events that various
controls raise any appropriate responses to them.
I would hope that there is an analogy to the way one responds to messages at
the SDK level; wherein the programmer has complete control over further
action of the message (i.e. alter it and pass it on, snuff it, or take the
system defined default action).
..
available to an Event Handler in Visual C++ 8.0 Express Edition.
In particular I am trying to manage the contents of the TextBox.
I have figured out a rather painful way of handling the "text changed" event
but, it takes saving the contents and cursor position from the last event of
this type in order to compare it to the "new" content and then altering the
current content appropriately.
I feel that there must be some way to use the PreviewKeyDown event to
examine the proposed change and, if it is unacceptable to beep the user and
reject the keystroke.
A specific solution to what I want to accomplish would be appreciated. Even
more so a pointer to a document that*fully* discusses the events that various
controls raise any appropriate responses to them.
I would hope that there is an analogy to the way one responds to messages at
the SDK level; wherein the programmer has complete control over further
action of the message (i.e. alter it and pass it on, snuff it, or take the
system defined default action).
..