Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!uakari.primate.wisc.edu!polyslo!pdavid From: pdavid@polyslo.CalPoly.EDU (Paul C. David) Newsgroups: comp.windows.ms Subject: Trapping virtual keystrokes in a Modeless DlgProc Message-ID: <1989Oct5.050501.11436@polyslo.CalPoly.EDU> Date: 5 Oct 89 05:05:01 GMT Reply-To: pdavid@polyslo.CalPoly.EDU (Paul C. David) Distribution: usa Organization: Cal Poly State University -- San Luis Obispo Lines: 14 I have had several go-arounds trying to trap virtual keys in a modeless dialog proc. Does anyone know of code examples that clearly illustrate this? I have tried subclassing on the functions of a control, but get only garbage in some diagnostics that I try to print out on entry. Not too long ago, someone mentioned trapping the WM_GETDLGCODE message. Perhaps if someone could elaborate on this for me, I could get it right. Thanks for the help. -Paul. -- Paul C. David pdavid@polyslo.CalPoly.EDU California Polytechic State University, San Luis Obispo Home of the six-year or 60,000 mile undergraduate degree