MCPcopy Create free account
hub / github.com/T-Troll/alienfx-tools / SetIconState

Method SetIconState

alienfx-gui/ConfigHandler.cpp:139–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139bool ConfigHandler::SetIconState(bool needCheck) {
140 // change tray icon...
141 niData.hIcon = (HICON)LoadImage(hInst,
142 MAKEINTRESOURCE(lightsOn ? stateDimmed ? IDI_ALIENFX_DIM : IDI_ALIENFX_ON : IDI_ALIENFX_OFF),
143 IMAGE_ICON, GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON), LR_DEFAULTCOLOR);
144 return AddTrayIcon(&niData, needCheck);
145}
146
147DWORD ConfigHandler::GetAccentColor() {
148 DWORD size = sizeof(DWORD), value = 0;

Callers 2

SetStateMethod · 0.80
MainDialogFunction · 0.80

Calls 1

AddTrayIconFunction · 0.85

Tested by

no test coverage detected