MCPcopy Create free account
hub / github.com/DiscordMessenger/dm / UpdateBackgroundBrush

Method UpdateBackgroundBrush

src/windows/MessageList.cpp:3892–3905  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3890}
3891
3892void MessageList::UpdateBackgroundBrush()
3893{
3894 int bru = COLOR_3DFACE;
3895 auto mode = GetLocalSettings()->GetMessageStyle();
3896 if (mode == MS_FLATBR)
3897 bru = COLOR_WINDOW;
3898
3899 ReloadBackground();
3900
3901 if (mode == MS_IMAGE)
3902 SetClassLongPtr(m_hwnd, GCLP_HBRBACKGROUND, (LONG_PTR) m_backgroundBrush);
3903 else
3904 SetClassLongPtr(m_hwnd, GCLP_HBRBACKGROUND, (LONG_PTR) ri::GetSysColorBrush(bru));
3905}
3906
3907bool MessageList::SendToMessage(Snowflake sf, bool requestIfNeeded, bool forceInvalidate)
3908{

Callers 2

WindowProcFunction · 0.80
CreateMethod · 0.80

Calls 2

GetLocalSettingsFunction · 0.85
GetMessageStyleMethod · 0.80

Tested by

no test coverage detected