1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- // ZZB.cpp: implementation of the ZZB class.
- //
- //////////////////////////////////////////////////////////////////////
- #include "stdafx.h"
- #include "YLGL.h"
- #include "ZZB.h"
- #ifdef _DEBUG
- #undef THIS_FILE
- static char THIS_FILE[]=__FILE__;
- #define new DEBUG_NEW
- #endif
- //////////////////////////////////////////////////////////////////////
- // Construction/Destruction
- //////////////////////////////////////////////////////////////////////
- ZZB::ZZB()
- {
- g_pMainWnd->GetSkin();
- }
- ZZB::~ZZB()
- {
- }
- void ZZB::OnFSCommand(LPCTSTR command, LPCTSTR args)
- {
- }
- void ZZB::Init()
- {
- Graphics graph(m_pBk);
- Image *img=NULL;
- ::LoadImageFromBuf (&img, g_mainpath+"\\ͼƬ\\ÕÆÖб¦.jpg");
- if(img)
- {
- graph.DrawImage(img, 0,0);
- delete img;
- }
- }
- void ZZB::Destory()
- {
- }
- void ZZB::BtnClick(WPARAM wParam, LPARAM lParam)
- {
- int id=lParam;
- id-=99;
- switch(id)
- {
- case 1:
- CDialog::OnOK ();
- break;
- case 2:
- CDialog::OnCancel ();
- break;
- }
- }
- BOOL ZZB::PreTransMsg(MSG* pMsg)
- {
- if(pMsg->message==WM_KEYDOWN)
- {
- switch (pMsg->wParam)
- {
- case VK_RETURN:
- CDialog::OnOK ();
- return 1;
- }
- }
- else if(pMsg->message==WM_LBUTTONDOWN)
- {
- g_bNeedDrawParent=1;
- }
- return CDialog::PreTranslateMessage(pMsg);
- }
-
|