void CLeftView::OnInitialUpdate() { CTreeView::OnInitialUpdate(); CRuntimeClass *prc =RUNTIME_CLASS(CLeftView); BOOL b = prc ->IsDerivedFrom(RUNTIME_CLASS(CDC)); b = this ->IsKindOf(RUNTIME_CLASS(CDC)); static int i = 0; if (i)return; ++i; Mod
void CLeftView::OnInitialUpdate() { CTreeView::OnInitialUpdate(); CRuntimeClass *prc =RUNTIME_CLASS(CLeftView); BOOL b = prc ->IsDerivedFrom(RUNTIME_CLASS(CDC)); b = this ->IsKindOf(RUNTIME_CLASS(CDC)); static int i = 0; if (i)return; ++i; Mod
combox添加图片,可以随意使用。这个是cpp。
#pragma once
// CComboBoxXI
class CComboBoxXI : public CComboBox
{
DECLARE_DYNAMIC(CComboBoxXI)
public:
CComboBoxXI();
virtual ~CComboBoxXI();
void SetImageList(CImageList* pImageList);
CI