shouldn't be a big problem
first and foremost...
macbook pro? great machine - congrats (if you get one!)
onto the w2207h
the w2207h only has HDMI and VGA inputs. I would highly recommend HDMI (digital) over VGA (analog) for best picture quality. A lot of the higher end HP laptops have an HDMI output, but the macbook pro does not - not a problem though!
You just need to get an HDMI/DVI cable like this one:
http://www.monoprice.com/products/p...d=1023102&p_id=2218&seq=1&format=1#largeimage
connect the DVI end to your macbook pro and the HDMI into the monitor.
(I've bought that exact cable myself - great build quality).
To operate the macbook pro with the lid closed, yes you do need an external keyboard/mouse solution (wired or bluetooth, doesn't matter).
The macbook pro will automatically use the connected external LCD (your w2207h) once it detects an external keyboard that's been activated (by plugging in via USB or turning on bluetooth). You can then use apple's built-in screen calibration tool to calibrate the display (this part is subjective, so just adjust to your liking).
A macbook pro / HP 22" w2207H combo should make quite the computing powerhouse. If you get it up and running, I doubt you'll be left feeling dissatisfied
😛
God bless & good luck!