Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

DlgSplash.h

Go to the documentation of this file.
00001 //
00002 // DlgSplash.h
00003 //
00004 // Copyright (c) Shareaza Development Team, 2002-2005.
00005 // This file is part of SHAREAZA (www.shareaza.com)
00006 //
00007 // Shareaza is free software; you can redistribute it
00008 // and/or modify it under the terms of the GNU General Public License
00009 // as published by the Free Software Foundation; either version 2 of
00010 // the License, or (at your option) any later version.
00011 //
00012 // Shareaza is distributed in the hope that it will be useful,
00013 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015 // GNU General Public License for more details.
00016 //
00017 // You should have received a copy of the GNU General Public License
00018 // along with Shareaza; if not, write to the Free Software
00019 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00020 //
00021 
00022 #pragma once
00023 
00024 
00025 class CSplashDlg : public CDialog
00026 {
00027 // Construction
00028 public:
00029         CSplashDlg(int nMax = 0, BOOL bSilent = FALSE);
00030         virtual ~CSplashDlg();
00031 
00032         enum { IDD = IDD_SPLASH };
00033         DECLARE_DYNAMIC(CSplashDlg)
00034 
00035 // Attributes
00036 protected:
00037         int                     m_nPos;
00038         int                     m_nMax;
00039         BOOL            m_bSilent;
00040         CString         m_sState;
00041 protected:
00042         CBitmap         m_bmSplash;
00043         CBitmap         m_bmBuffer;
00044         CDC                     m_dcBuffer1;
00045         CDC                     m_dcBuffer2;
00046 protected:
00047         HINSTANCE       m_hUser32;
00048         BOOL            (WINAPI *m_pfnAnimateWindow)(HWND, DWORD, DWORD);
00049 
00050 // Operations
00051 public:
00052         void    Step(LPCTSTR pszText);
00053         void    Topmost();
00054         void    Hide();
00055 protected:
00056         void    DoPaint(CDC* pDC);
00057 
00058 // Overrides
00059 public:
00060         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
00061 
00062 // Implementation
00063 protected:
00064         DECLARE_MESSAGE_MAP()
00065         virtual BOOL OnInitDialog();
00066         afx_msg void OnPaint();
00067         afx_msg LONG OnPrintClient(WPARAM wParam, LPARAM lParam);
00068 
00069 };

Generated on Thu Dec 15 10:39:40 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2