사용자 인터페이스 갱신 처리는 다형적으로 작동한다.
메뉴, 툴바
CCmdUI
.Enable()
.SetText()
.SetCheck()
.SetRadio()
1. ThemeClass 디렉토리를 프로젝트에 복사하고 프로젝트에 포함시킨다.
2. 타이틀바가 없는 다이얼로그 리소스를 만든다.
3. 다이얼로그 클래스의 베이스 클래스를 CThemeDialog로 수정하다.
.SetFontSize()
.SetFontColor()
.SetShadowColor()
.SetFontBold()
.SetBackColor()
.SetAlignFormat()
DT_CENTER
DT_VCENTER
.SetCaptionArea()
.SetCaptionText()
.SetBackImage()
.SetTransparentByColor()
.SetMouseDragMove()
.SetStyleResize()
4. 타이틀바의 시스템 버튼들을 만든다.
OnBtnClickExit()
탭 컨트롤은 Push-like의 라디오 버튼(CThemeRadio)
CThemeStatic -> CWnd
.SetBackImageFillType()
dfBACK_IMAGE_FILL_TYPE_ONCE
.SetBackImage()
.SetAlignFormat()
DT_CENTER
DT_RIGHT
DT_VCENTER
.SetFontColor()
.SetBackColor()
.SetOutlineColor()
.SetOutlineThick()
.SetEdgeRoundValue()
.SetCaptionText()
CThemeGroup -> CStatic
.SetBackColor()
.SetOutlineColor()
.SetEdgeRoundValue()
.SetBackImage()
CThemeButton -> CButton
.SetBackImageFillType()
dfBACK_IMAGE_FILL_TYPE_ONCE
.SetBackImage()
.SetCaptionText()
.SetFontColor()
.SetFontHoverColor()
.SetFontPressedColor()
.SetShadowColor()
.SetShadowHoverColor()
.SetShadowPressedColor()
.SetFontBold()
.SetFontSize()
.SetToolTip()
CThemeCheck -> CButton
.SetBackColor()
.SetFontColor()
.SetMarkImage()
.SetCheck()
.GetCheck()
CThemeRadio -> CButton
.SetBackImage()
.SetFontColor()
.SetBackColor()
.SetShadowColor()
.SetFontHoverColor()
.SetShadowHoverColor()
.SetFontPressedColor()
.SetShadowPressedColor()
.SetAlignFormat()
DT_CENTER
DT_VCENTER
.SetMarkImage()
.SetCheck()
CThemeEdit -> CWnd
.SetFontColor()
.SetBackColor()
.SetOutlineLTColor()
.SetOutlineRBColor()
.GetWindowText()
.SetWindowText()
CThemeListBox -> CWnd
.SetFontColor()
.SetBackColor()
.SetOutlineColor()
.AddString()
.DeleteString()
.GetCurSel()
CThemeCombo -> CWnd
.SetFontColor()
.SetBackColor()
.SetOutlineColor()
.SetButtonImage()
.GetCurSel()
.GetLBText()
CThemeProgress -> CWnd
.SetBackColor()
.SetOutlineLTColor()
.SetOutlineRBColor()
.SetRange()
.SetPos()
CThemeSlider -> CWnd
.SetBackImage()
.SetBarImage()
.SetRange()
.SetPos()
.GetPos()
CThemeScroll
.SetBackImage()
.SetBarImage()
.SetRange()
.SetPos()
.GetPos()
CThemeListCtrl
.SetBackColor()
.SetFontColor()
.InsertColumn()
CThemeGrid
.SetBackColor()
.SetRows()
.SetCols()
.SetText()
.GetItemText()
참조 사이트: