123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- // SampleDlg.cpp: implementation of the SampleDlg class.
- //
- //////////////////////////////////////////////////////////////////////
- #include "stdafx.h"
- #include "YLGL.h"
- #include "SampleDlg.h"
- #ifdef _DEBUG
- #undef THIS_FILE
- static char THIS_FILE[]=__FILE__;
- #define new DEBUG_NEW
- #endif
- //////////////////////////////////////////////////////////////////////
- // Construction/Destruction
- //////////////////////////////////////////////////////////////////////
- SampleDlg::SampleDlg()
- {
- }
- SampleDlg::~SampleDlg()
- {
- }
- void SampleDlg::OnFSCommand(LPCTSTR command, LPCTSTR args)
- {
- }
- void SampleDlg::Init()
- {
- }
- void SampleDlg::Destory()
- {
- }
- void SampleDlg::BtnClick(WPARAM wParam, LPARAM lParam)
- {
- int id=lParam;
- id-=99;
- switch(id)
- {
- case 1:
- break;
- case 2:
- break;
- }
- }
- BOOL SampleDlg::PreTransMsg(MSG* pMsg)
- {
- if(pMsg->message==WM_KEYDOWN)
- {
- switch (pMsg->wParam)
- {
- case VK_ESCAPE:
- case VK_F3:
- case VK_MULTIPLY:
- case VK_OEM_2:
- return 1;
- }
- }
- return CDialog::PreTranslateMessage(pMsg);
- }
|