i would create a simple dll function (or do it with lite-c) which draws a line with direct3d. you can draw them before the panels get drawn and i think it would be much faster than with the pixel commands.