In Windows XP, it used to be rather easy to configure the battery icon's behavior. If the laptop was plugged in the AC outlet, the icon would be hidden. When the laptop was on battery power, the icon would show itself again.
I don't know how to replicate this behavior in Windows 7. Have they removed this feature?