Mood: cool
Topic: VC++
Anywhere any time. Happy programming. HBITMAP hBmp = (HBITMAP)::LoadImage(AfxGetInstanceHandle()/*application instance handle*/, "C:\\Nibu.bmp"/*file name*/, IMAGE_BITMAP/*or IMAGE_ICON, IMAGE_CURSOR*/, 0/*original width*/, 0/*original height*/, LR_LOADFROMFILE ); //create bitmap object CBitmap *bmp = CBitmap::FromHandle(hBmp); //That's it. Very easy ;)
Posted by Nibu babu thomas
at 1:43 PM
Updated: Thursday, 10 November 2005 4:44 PM