Thanks. I made the changes. Still results are the same
I wrote the pixmap to a file (pixmap.save). The pixmap is fine - has captured proper graphics. The bitmap from pixmap is also fine. THe DIBSECTION shows correct height and width. Looks like there is something with DC/selectObject/bitblt.