// 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); }