BattViewerDlg.h

Go to the documentation of this file.
00001 //
00002 // Copyright 2003 Sony Corporation 
00003 //
00004 // Permission to use, copy, modify, and redistribute this software for
00005 // non-commercial use is hereby granted.
00006 //
00007 // This software is provided "as is" without warranty of any kind,
00008 // either expressed or implied, including but not limited to the
00009 // implied warranties of fitness for a particular purpose.
00010 //
00011 // BattViewerDlg.h : header file
00012 //
00013 
00014 #if !defined(AFX_BATTVIEWERDLG_H__82F80A47_CF3C_11D7_86A0_0090CC0FC3B5__INCLUDED_)
00015 #define AFX_BATTVIEWERDLG_H__82F80A47_CF3C_11D7_86A0_0090CC0FC3B5__INCLUDED_
00016 
00017 #if _MSC_VER > 1000
00018 #pragma once
00019 #endif // _MSC_VER > 1000
00020 
00022 // CBattViewerDlg dialog
00023 
00024 class CBattViewerDlg : public CDialog
00025 {
00026 // Construction
00027 public:
00028         CBattViewerDlg(CWnd* pParent = NULL);   // standard constructor
00029 
00030 // Dialog Data
00031         //{{AFX_DATA(CBattViewerDlg)
00032         enum { IDD = IDD_BATTVIEWER_DIALOG };
00033         CProgressCtrl   m_battCapacity;
00034         //}}AFX_DATA
00035 
00036         // ClassWizard generated virtual function overrides
00037         //{{AFX_VIRTUAL(CBattViewerDlg)
00038         protected:
00039         virtual void DoDataExchange(CDataExchange* pDX);        // DDX/DDV support
00040         //}}AFX_VIRTUAL
00041 
00042 // Implementation
00043 public:
00044 protected:
00045         BOOL UpdateBattCapacity(void);
00046         HICON m_hIcon;
00047         LPVOID m_pShrMem1;
00048         HANDLE m_hMem1;
00049     HANDLE m_hMutex;
00050     afx_msg LRESULT LocalUpdate(WPARAM, LPARAM);
00051 
00052         struct BCHK_DATA {
00053                 int cap;
00054                 HWND hWnd;
00055         };
00056         union SHARDMEM {
00057                 void *p_v;
00058                 BCHK_DATA *p_d;
00059         };
00060         SHARDMEM m_pUnionShrMem;
00061         // Generated message map functions
00062         //{{AFX_MSG(CBattViewerDlg)
00063         virtual BOOL OnInitDialog();
00064         afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
00065         afx_msg void OnPaint();
00066         afx_msg HCURSOR OnQueryDragIcon();
00067         //}}AFX_MSG
00068         DECLARE_MESSAGE_MAP()
00069 };
00070 
00071 //{{AFX_INSERT_LOCATION}}
00072 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
00073 
00074 #endif // !defined(AFX_BATTVIEWERDLG_H__82F80A47_CF3C_11D7_86A0_0090CC0FC3B5__INCLUDED_)

Generated on Sun Dec 2 23:04:28 2007 for openSDK by  doxygen 1.3.9.1