Anomalous-Magnetic-Moment Effects in a Strongly Magnetized and Dense Medium