| 85 | } |
| 86 | |
| 87 | void 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 | |
| 98 | INT_PTR SuggestionMenuButton::run_dlg_proc(UINT message, WPARAM w_param, |
| 99 | LPARAM l_param) { |