Habe es doch noch gefunden:
Delphi-Quellcode:
WM_NOTIFY:
begin
if PNMHdr(lParam).idFrom = ID_LV_USERGROUPS then
begin
writeln(IntToStr(PNMHDR(lParam)^.code));
case PNMHDR(lParam)^.code of
LVN_ITEMCHANGED:
begin
OldState := (PNMLISTVIEW(lParam)^.uOldState and LVIS_STATEIMAGEMASK shr 12) - 1;
NewState := (PNMLISTVIEW(lParam)^.uNewState and LVIS_STATEIMAGEMASK shr 12) - 1;
Enable_ToolbarButton(GetDlgItem(hApp, ID_TOOLBAR), ID_MNU_SAVE, OldState <> NewState);
MyEnableMenuItem(GetMenu(hApp), ID_MNU_SAVE, OldState <> NewState);
end;
end;
end;
end;