GME  13
ComboEdit.cpp
Go to the documentation of this file.
00001 // ComboEdit.cpp : implementation file
00002 //
00003 
00004 #include "stdafx.h"
00005 #include "gmeactivebrowser.h"
00006 #include "ComboEdit.h"
00007 
00008 #ifdef _DEBUG
00009 #define new DEBUG_NEW
00010 #undef THIS_FILE
00011 static char THIS_FILE[] = __FILE__;
00012 #endif
00013 
00015 // CComboEdit
00016 
00017 CComboEdit::CComboEdit(CAutoComboBox* pAutoComboBox)
00018 {
00019         m_pAutoComboCtrl=pAutoComboBox;
00020 }
00021 
00022 CComboEdit::~CComboEdit()
00023 {
00024 }
00025 
00026 
00027 BEGIN_MESSAGE_MAP(CComboEdit, CEdit)
00028         //{{AFX_MSG_MAP(CComboEdit)
00029                 // NOTE - the ClassWizard will add and remove mapping macros here.
00030         //}}AFX_MSG_MAP
00031 END_MESSAGE_MAP()
00032 
00034 // CComboEdit message handlers
00035 
00036 LRESULT CComboEdit::WindowProc(UINT message, WPARAM wParam, LPARAM lParam) 
00037 {
00038 
00039         if (message == WM_KEYDOWN)
00040         {               
00041 
00042                 int nVirtKey = (int) wParam;
00043                 m_pAutoComboCtrl->OnEditKeyDown(nVirtKey);
00044                         
00045         }
00046 
00047         return CEdit::WindowProc(message, wParam, lParam);
00048 }