Hi vkarthik
You've got two options. You can use the CStatic control (I assume this is on a dialog) and use the CStatic::SetBitmap member.
Alternatively, you can access the view or dialog's DC (device context) directly and call the CDC::BitBlt member to 'blit' a bitmap directly to the window.
Both these methods will only work with bitmaps though. For JPEGs, you'll need the conversion algorithm. Have a look at bitmap functions under CDC in the MSDN library.
Good luck