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