In light of the Raffi Torres 25 game suspension, the question has been raised as to whether his salary will count against the salary cap while he's suspended for an on-ice violation.
The answer is yes - the salaries of players suspended for on-ice violations do count against the salary cap.
Remember that players are not paid during the NHL playoffs so there are no cap concerns. Come the regular season, however, Torres' salary will count against the cap.
If you want more information, here is a good link on the topic.