Click here to Skip to main content
15,884,050 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to use printing tools on Visual C++ 6.0? Pin
CPallini10-Sep-09 23:45
mveCPallini10-Sep-09 23:45 
GeneralRe: How to use printing tools on Visual C++ 6.0? Pin
Eka Candra11-Sep-09 19:40
Eka Candra11-Sep-09 19:40 
Questionsaving view size inside Splitter control Pin
rp_suman10-Sep-09 22:53
rp_suman10-Sep-09 22:53 
QuestionView and transfer image in a chat server Pin
raviteja202010-Sep-09 22:40
raviteja202010-Sep-09 22:40 
AnswerRe: View and transfer image in a chat server Pin
CPallini10-Sep-09 23:43
mveCPallini10-Sep-09 23:43 
GeneralRe: View and transfer image in a chat server Pin
raviteja202011-Sep-09 0:04
raviteja202011-Sep-09 0:04 
GeneralRe: View and transfer image in a chat server Pin
CPallini11-Sep-09 0:41
mveCPallini11-Sep-09 0:41 
GeneralRe: View and transfer image in a chat server [modified] Pin
raviteja202011-Sep-09 0:49
raviteja202011-Sep-09 0:49 
 void CPictureBox::ShowBitmap(CPaintDC *pdc) 
{
     //Create a device context to load the bitmap into
     CDC dcMem;
     dcMem.CreateCompatibleDC(pdc);

     //Get the Display area available
     CRect lRect;
     GetClientRect(lRect);
     lRect.NormalizeRect();

     //select the bitmap into compatible device context
     CBitmap* pOldBitmap = (CBitmap*)dcMem.SelectObject(&m_bmpBitmap);
     //m_bmpBitmap.SetBitmapDimension(lRect.Width(),lRect.Height());

     //copy & resize the window to the dialog window
     pdc->StretchBlt(0,0,lRect.Width(),lRect.Height(),&dcMem,0,0,bm.bmWidth,bm.bmHeight,SRCCOPY);
} 


This part might be the major problem, since its not displaying the picture.



modified on Friday, September 11, 2009 7:08 AM

GeneralRe: View and transfer image in a chat server Pin
CPallini11-Sep-09 0:53
mveCPallini11-Sep-09 0:53 
GeneralRe: View and transfer image in a chat server Pin
raviteja202011-Sep-09 1:07
raviteja202011-Sep-09 1:07 
GeneralRe: View and transfer image in a chat server Pin
CPallini11-Sep-09 2:20
mveCPallini11-Sep-09 2:20 
Questiontype text of Edit box using font Courier (VC++6.0) ? Pin
aa_zz10-Sep-09 22:30
aa_zz10-Sep-09 22:30 
AnswerRe: type text of Edit box using font Courier (VC++6.0) ? Pin
Adam Roderick J10-Sep-09 22:46
Adam Roderick J10-Sep-09 22:46 
GeneralRe: type text of Edit box using font Courier (VC++6.0) ? Pin
aa_zz10-Sep-09 23:06
aa_zz10-Sep-09 23:06 
GeneralRe: type text of Edit box using font Courier (VC++6.0) ? Pin
Adam Roderick J10-Sep-09 23:18
Adam Roderick J10-Sep-09 23:18 
GeneralRe: type text of Edit box using font Courier (VC++6.0) ? Pin
aa_zz11-Sep-09 0:57
aa_zz11-Sep-09 0:57 
GeneralRe: type text of Edit box using font Courier (VC++6.0) ? Pin
Nuri Ismail11-Sep-09 2:08
Nuri Ismail11-Sep-09 2:08 
GeneralRe: type text of Edit box using font Courier (VC++6.0) ? Pin
aa_zz13-Sep-09 17:14
aa_zz13-Sep-09 17:14 
GeneralRe: type text of Edit box using font Courier (VC++6.0) ? Pin
aa_zz29-Sep-09 19:00
aa_zz29-Sep-09 19:00 
Questionget date and time of the remote file using MFC Pin
sunnyram10-Sep-09 21:39
sunnyram10-Sep-09 21:39 
AnswerRe: get date and time of the remote file using MFC Pin
norish11-Sep-09 2:55
norish11-Sep-09 2:55 
Questioncut one small rectangle piece in one full image Pin
Game-point10-Sep-09 21:02
Game-point10-Sep-09 21:02 
AnswerRe: cut one small rectangle piece in one full image Pin
Sauce!10-Sep-09 21:11
Sauce!10-Sep-09 21:11 
GeneralRe: cut one small rectangle piece in one full image Pin
Game-point10-Sep-09 21:27
Game-point10-Sep-09 21:27 
AnswerRe: cut one small rectangle piece in one full image Pin
CPallini10-Sep-09 21:12
mveCPallini10-Sep-09 21:12 

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.