MCPcopy Create free account
hub / github.com/Predelnik/DSpellCheck / set_transparency

Method set_transparency

src/ui/SuggestionMenuButton.cpp:87–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87void SuggestionMenuButton::set_transparency() {
88 SetWindowLongPtr(getHSelf(), GWL_EXSTYLE,
89 GetWindowLongPtr(getHSelf(), GWL_EXSTYLE) | WS_EX_LAYERED);
90 SetLayeredWindowAttributes(
91 getHSelf(), 0,
92 static_cast<BYTE>((255 * m_settings.data.suggestion_button_opacity) / 100),
93 LWA_ALPHA);
94 display(true);
95 display(false);
96}
97
98INT_PTR SuggestionMenuButton::run_dlg_proc(UINT message, WPARAM w_param,
99 LPARAM l_param) {

Callers 1

beNotifiedFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected