我正在通过以下方法注册我的类(class):BOOLCNDSClientDlg::InitInstance(){//RegisterWindowUpdatedon16thNov2010,@Subhen//RegisterouruniqueclassnamethatwewishtouseWNDCLASSwndcls;memset(&wndcls,0,sizeof(WNDCLASS));wndcls.style=CS_DBLCLKS|CS_HREDRAW|CS_VREDRAW;wndcls.lpfnWndProc=::DefWindowProc;wndcls.hInstance=AfxGe