Click here to Skip to main content
15,917,533 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CString 2 integer and reverse Pin
jason9912-May-03 22:55
jason9912-May-03 22:55 
GeneralRe: CString 2 integer and reverse Pin
macmac3812-May-03 23:40
macmac3812-May-03 23:40 
GeneralRe: CString 2 integer and reverse Pin
roel_12-May-03 23:53
roel_12-May-03 23:53 
GeneralRe: CString 2 integer and reverse Pin
macmac3813-May-03 0:07
macmac3813-May-03 0:07 
GeneralRe: CString 2 integer and reverse Pin
jason9913-May-03 2:19
jason9913-May-03 2:19 
GeneralEmbedded ole display in mfc Pin
m_vnaresh12-May-03 21:50
m_vnaresh12-May-03 21:50 
Questionhow to load a jpg/bmp image ? Pin
djghazi12-May-03 20:09
djghazi12-May-03 20:09 
AnswerRe: how to load a jpg/bmp image ? Pin
balcn13-May-03 2:04
balcn13-May-03 2:04 
The following example code can be used for loading a BMP file image in any vc++ application.

HBITMAP hbitmap;
hbitmap = (HBITMAP)LoadImage(NULL,"C:\\house.bmp",IMAGE_BITMAP,0,0,LR_LOADFROMFILE);

HDC hmemdc;
hmemdc = CreateCompatibleDC(pDC->m_hdc);
SelectObject(hmemdc,hbitmap);
BitBlt(pDC->m_hdc,0,0,image_width,image_height,hmemdc,0,0,SRCCOPY);

For viewing as a background image in an SDI application the above code can be used inside the OnDraw(CDC *pDC) method of view class.


For loading a JPEG file you can use external JPEG libraries such as the
IJL15.DLL which is freely available.


R.Balachandran
Questionhow to display icon with items of a list view control Pin
djghazi12-May-03 19:56
djghazi12-May-03 19:56 
GeneralBitmap related Pin
Anonymous12-May-03 19:36
Anonymous12-May-03 19:36 
Questionwriting data to a text file????????? Pin
xxhimanshu12-May-03 19:01
xxhimanshu12-May-03 19:01 
Generalopen IE as popup..in new window Pin
xxhimanshu12-May-03 18:58
xxhimanshu12-May-03 18:58 
Generalcompressing, uncompressing files Pin
r i s h a b h s12-May-03 18:52
r i s h a b h s12-May-03 18:52 
GeneralRe: compressing, uncompressing files Pin
Neville Franks12-May-03 23:38
Neville Franks12-May-03 23:38 
QuestionCan string convert to float, double ? Pin
yugn12-May-03 17:44
yugn12-May-03 17:44 
AnswerRe: Can string convert to float, double ? Pin
Michael Dunn12-May-03 17:59
sitebuilderMichael Dunn12-May-03 17:59 
GeneralRe: Can string convert to float, double ? Pin
r i s h a b h s12-May-03 18:18
r i s h a b h s12-May-03 18:18 
AnswerRe: Can string convert to float, double ? Pin
yugn12-May-03 20:17
yugn12-May-03 20:17 
Generalstatic function vc++ Pin
mperlera12-May-03 16:58
mperlera12-May-03 16:58 
GeneralRe: static function vc++ Pin
Dave Bryant12-May-03 17:36
Dave Bryant12-May-03 17:36 
GeneralRe: static function vc++ Pin
Dean Goodman12-May-03 17:38
Dean Goodman12-May-03 17:38 
GeneralCapturing keystrokes and mouse events/movement Pin
Ron Klaus12-May-03 16:55
sussRon Klaus12-May-03 16:55 
GeneralRe: Capturing keystrokes and mouse events/movement Pin
Joan M12-May-03 20:52
professionalJoan M12-May-03 20:52 
GeneralVS.NET MSN Messenger Add-In Pin
Anonymous12-May-03 14:45
Anonymous12-May-03 14:45 
GeneralDisabling a button using ATL Pin
JC Gauthier12-May-03 13:28
JC Gauthier12-May-03 13:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.