| 100 | } |
| 101 | |
| 102 | BOOL CMeterCtrl::CreateEx(DWORD dwExStyle, LPCTSTR lpszClassName, |
| 103 | LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, |
| 104 | CWnd* pParentWnd, UINT nID, LPVOID lpParam) |
| 105 | { |
| 106 | // TODO: �ڴ�����ר�ô����/����û��� |
| 107 | |
| 108 | static CString className = AfxRegisterWndClass(CS_HREDRAW | CS_VREDRAW); |
| 109 | |
| 110 | return CWnd::CreateEx(dwExStyle, //WS_EX_CLIENTEDGE | WS_EX_STATICEDGE, |
| 111 | lpszClassName, lpszWindowName, dwStyle, |
| 112 | rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top, |
| 113 | pParentWnd->GetSafeHwnd(), (HMENU) nID); |
| 114 | |
| 115 | //return CWnd::CreateEx(dwExStyle, lpszClassName, lpszWindowName, |
| 116 | // dwStyle, rect, pParentWnd, nID, lpParam); |
| 117 | } |
| 118 | |
| 119 | UINT CMeterCtrl::SetPos(UINT nPos) |
| 120 | { |