Reworked MFC Controls by Dark theme
- Set parent for your base main class by
XWinApp
- Set parent for your base main frame by
XMDIMainFrame
- Set theme by
CVisualManagerWin10Dark
- Call
Create
function - Set base type (eLinear/eFill/eMulti) by
SetType(type)
- Set Grid size by
SetGrid(x, y)
- Add points to
Points
variable. -
- Fill/Multi: you need to reduce the last point to the first
-
XEditText: - all user data
-
XEditFloat - only float data
-
XEditUnsigned - only unsigned numerics data
-
SetFrameRender(bool)
- For drawind border -
SetHint(string)
- to draw a hint when losing focus
- Override
OnChangeVisualStyle
if need - Use
gPaneManager->OnChangeVisualStyle()
into theme change function
The rest of the components are simply redrawn under the dark mode with minimal corrections.