MCPcopy Create free account
hub / github.com/AutoHotkey/AutoHotkey / ControlSetMonthCalColor

Method ControlSetMonthCalColor

source/script_gui.cpp:1283–1291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1281
1282
1283void GuiType::ControlSetMonthCalColor(GuiControlType &aControl, COLORREF aColor, UINT aMsg)
1284{
1285 // Testing shows that changing the COLOR_WINDOWTEXT system color affects MonthCal
1286 // controls, but passing CLR_DEFAULT always sets the color to black regardless.
1287 // MSDN doesn't seem to specify any way to revert to defaults.
1288 if (aColor == CLR_DEFAULT)
1289 aColor = GetSysColor(COLOR_WINDOWTEXT);
1290 SendMessage(aControl.hwnd, aMsg, MCSC_TEXT, aColor);
1291}
1292
1293
1294ResultType GuiType::ControlChoose(GuiControlType &aControl, ExprTokenType &aParam, BOOL aOneExact)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected