TLDR: My fix was using a much shorter and better quality cable.
I managed to find a solution to this not that long ago on a brand new monitor that required me to buy a cheap 5m DVI to HDMI cable (I couldn't get anything else quickly).
Like you the problem was highly dependant on what was on screen and seemed more prevalent with darker images. When moving windows around they seemed to "push" the flickering pixels around which I found aggravating.
I tried a number of things including changing screen resolution, refresh rate, colour space (sRGB/CMYK as my graphics card supported both) and nothing at all would stop the flickering pixels.
Eventually in frustration I purchased a simple DVI to HDMI adaptor and combined with a 1.5m HDMI cable and appeared to fix the problem for me. I can only assume that due to the age of my graphics card and the questionable nature of the long cable that data signals for darker areas were somehow corrupted, perhaps something about weak signals and the 8/10b encoding. I'm not completely sure why, but this completely got rid of my flickering pixels.
-=EDIT=-
I've tried to look into what might have been causing this issue for me and so here's my disclaimer for the next bit: Here be dragons and wild guesses as to what is failing.
DVI (and HDMI) use TMDS. TDMS, according to wikipedia, uses "current mode logic (CML), DC coupled and terminated to 3.3 Volts" The effective signal path between transmitter and receiver looks something like this:
My wild guess is that due to the DC coupling at the destination the source must effectively "sink" the current out of the wire in order to produce a valid "0" on the line. A longer (and lower quality) cable will have a higer resistance and thus mean that the source must work marginally harder to pull the line low.
This is where my "weak graphics card" hypothesis comes into play. If the source is unable to completely and consistantly sink the current in the wire then by the time the destination is reading the bit pattern it may be that it reads a 1 where there should be a 0, causing a bit error. Too many bit errors lead to a pixel error and thus the pixel gets the wrong value and appears to be the wrong colour. Now the kicker is that these errors will not be completely consistant due to the source sometimes managing the job and sometimes failing.
I have a suspicion that the somewhat non-random nature of the problem is somehow also related to the 8/10b encoding which tries to achieve DC balance in the signalling protocol. My flickering was worse in particular areas, with there seeming to be some correlation between a group of dark and light mixtures making a "flicker" more likely to happen. I do not understand enough about it to form a firm idea of why it might cause the problem.
Of course, it could have just been a dodgy connector in the cable (I tried both graphics card outputs so nada there...)
Fixing stuck pixels
Stuck pixels are usually caused by manufacturing defects, and they
will often stay illuminated for the life of the panel. In many cases
it's possible to fix the pixel using either software tools or manual
manipulation.
The software solution will generally flash a series of images that
vary in colour and intensity onto the screen in an effort to unstick
the pixel.
Manual manipulation involves gently pressing on the affected area with
something like a pencil eraser. Doing this compresses the layers of
the panel, forcing the oil within the panel to move.
Be careful, though: this is by no means guaranteed to work, and it
could create even more stuck pixels or move the problem to elsewhere
on the screen rather than repairing it.
Dead pixels and hot pixels are generally the result of faults in the
circuitry of the panel. It's usually the case here that the transistor
does not switch states properly.
Dead pixels generally mean that the transistor has failed completely,
and this is rarely fixable.
Hot pixels may be due to manufacturing defects. They can often be
fixed in the same way as stuck pixels, but again, success is not
guaranteed.
More help
If you have stuck or dead pixels, we recommend that you try a software
solution and only press on the screen as a last resort, as you could
end up damaging the panel further. UDPixel is a program that
tries to find and fix faulty pixels, as does JScreenFix.
If your screen is new and seems to have an excessive number of faulty
pixels for its class, you should contact the manufacturer for a
replacement instead.
Best Answer
Stuck/dead pixels are usually individual pixels or in small clusters, and it has to do with faulty film in the LCD panel preventing electrical charge to polarize (twist, or whatever the technology might be used in the display in question) layers that let the light trough.
If it's going edge to edge you most likely have a problem with connection between your panel and underlying electronics. It can mostly be repaired by reflowing the flat cable connecting the panel with monitor interface. It will probably surface again within few weeks or months, so it's just a temporary fix unless it's done by hardcore professionals, but it would end up costing more than a new monitor.