Article ID: 103856
Article Last Modified on 3/7/2005
APPLIES TO
- Microsoft Windows Software Development Kit 3.1
This article was previously published under Q103856
SUMMARY
SubVBX.exe is a sample application that does Windows subclassing on a VBX
control using the Microsoft Foundation Class (MFC) Libraries version 2.0.
The sample subclasses the grid control, overrides the OnDlgCode() message
handler, and returns the DLGS_WANTARROWS code. Normally Windows uses the
arrow keys to move between controls in a dialog box, and does not pass the
arrow keys to the control. Subclassing the grid control and overriding the
OnDlgCode() message handler causes Windows to pass the arrow keys to the
grid control so that it can use the keys to move between cells in the
control.
Keywords: kbinfo kbdownload kb16bitonly kbfile kbsample KB103856