MFC可设置背景色边框色文字色的CGroup类 [InFileYourDialogClass.h] #include"SxGroupBox.h" classYourDialogClass:publicCDialog { ... //DialogData //{{AFX_DATA(YourDialogClass) ... CSxGroupBox MyGroupBox; ... //}}AFX_DATA ... } [InFileYourDialogClass.cpp] voidYourDialogClass::YourFunctio