mirror of
https://github.com/reactos/reactos.git
synced 2024-08-19 18:02:55 +00:00
![Eric Kohl](/assets/img/avatar_default.png)
- Use GetSystemPowerStatus() instead of querying each battery. - Add an ugly AC power icon. Should be fixed or replaced. - Display AC power, battery charging, battery depleting and error cases. The AC power case was missing. - Update some strings because we are no longer using float for the charge percentage. @Turkish translators: Please check and update the translation of IDS_PWR_CHARGING!
80 lines
1.8 KiB
Plaintext
80 lines
1.8 KiB
Plaintext
#include <windef.h>
|
|
#include <winuser.h>
|
|
#include <commctrl.h>
|
|
|
|
#include "resource.h"
|
|
|
|
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
|
|
|
|
IDI_BATTERY ICON "resources/1.ico"
|
|
IDI_EXTRACT ICON "resources/2.ico"
|
|
IDI_VOLUME ICON "resources/3.ico"
|
|
IDI_VOLMUTE ICON "resources/4.ico"
|
|
|
|
IDI_BATTCAP0 ICON "resources/battery/0.ico"
|
|
IDI_BATTCAP1 ICON "resources/battery/1.ico"
|
|
IDI_BATTCAP2 ICON "resources/battery/2.ico"
|
|
IDI_BATTCAP3 ICON "resources/battery/3.ico"
|
|
IDI_BATTCAP4 ICON "resources/battery/4.ico"
|
|
IDI_BATTCAP5 ICON "resources/battery/5.ico"
|
|
|
|
IDI_BATTCHA0 ICON "resources/battery/charging0.ico"
|
|
IDI_BATTCHA1 ICON "resources/battery/charging1.ico"
|
|
IDI_BATTCHA2 ICON "resources/battery/charging2.ico"
|
|
IDI_BATTCHA3 ICON "resources/battery/charging3.ico"
|
|
IDI_BATTCHA4 ICON "resources/battery/charging4.ico"
|
|
|
|
IDI_BATTCAP_ERR ICON "resources/battery/error.ico"
|
|
IDI_POWER_AC ICON "resources/battery/ac.ico"
|
|
|
|
IDI_HOTPLUG_ERR ICON "resources/hotplug/0.ico"
|
|
IDI_HOTPLUG_OK ICON "resources/hotplug/1.ico"
|
|
|
|
|
|
IDR_SYSTRAY REGISTRY "resources/rgs/systray.rgs"
|
|
|
|
#include <reactos/manifest_dll.rc>
|
|
|
|
/* UTF-8 */
|
|
#pragma code_page(65001)
|
|
|
|
#ifdef LANGUAGE_CS_CZ
|
|
#include "lang/cs-CZ.rc"
|
|
#endif
|
|
#ifdef LANGUAGE_DE_DE
|
|
#include "lang/de-DE.rc"
|
|
#endif
|
|
#ifdef LANGUAGE_EN_US
|
|
#include "lang/en-US.rc"
|
|
#endif
|
|
#ifdef LANGUAGE_ES_ES
|
|
#include "lang/es-ES.rc"
|
|
#endif
|
|
#ifdef LANGUAGE_FR_FR
|
|
#include "lang/fr-FR.rc"
|
|
#endif
|
|
#ifdef LANGUAGE_HI_IN
|
|
#include "lang/hi-IN.rc"
|
|
#endif
|
|
#ifdef LANGUAGE_IT_IT
|
|
#include "lang/it-IT.rc"
|
|
#endif
|
|
#ifdef LANGUAGE_PL_PL
|
|
#include "lang/pl-PL.rc"
|
|
#endif
|
|
#ifdef LANGUAGE_RO_RO
|
|
#include "lang/ro-RO.rc"
|
|
#endif
|
|
#ifdef LANGUAGE_RU_RU
|
|
#include "lang/ru-RU.rc"
|
|
#endif
|
|
#ifdef LANGUAGE_TR_TR
|
|
#include "lang/tr-TR.rc"
|
|
#endif
|
|
#ifdef LANGUAGE_ZH_CN
|
|
#include "lang/zh-CN.rc"
|
|
#endif
|
|
#ifdef LANGUAGE_ZH_TW
|
|
#include "lang/zh-TW.rc"
|
|
#endif
|