Click here to Skip to main content
15,896,606 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Handling Files in Visual C++ Pin
shiraztk15-Nov-04 23:57
shiraztk15-Nov-04 23:57 
GeneralRe: Handling Files in Visual C++ Pin
krmed16-Nov-04 0:53
krmed16-Nov-04 0:53 
GeneralRe: Handling Files in Visual C++ Pin
David Crow16-Nov-04 3:04
David Crow16-Nov-04 3:04 
GeneralRe: Handling Files in Visual C++ Pin
shanil8019-Nov-04 3:12
shanil8019-Nov-04 3:12 
GeneralRe: Handling Files in Visual C++ Pin
David Crow19-Nov-04 3:56
David Crow19-Nov-04 3:56 
GeneralRe: Handling Files in Visual C++ Pin
shanil8019-Nov-04 17:27
shanil8019-Nov-04 17:27 
GeneralRe: Handling Files in Visual C++ Pin
David Crow22-Nov-04 2:33
David Crow22-Nov-04 2:33 
Generalload image fail Pin
vc-programmer-15-Nov-04 18:00
vc-programmer-15-Nov-04 18:00 
i want to run time image load.
image path folder is in the database.
fo example.."C:\Documents and Settings\mount top.bmp"
i have image load fail error..
please explain me..
for image load fail error.
following code is i using my demo.

void CTestbitmapView::OnInitialUpdate()
{
CFormView::OnInitialUpdate();
ResizeParentToFit();
if(m_hBmpNew != NULL )
DeleteObject(m_hBmpNew);
sourcex=sourcey=0;
CString file;
file="C:\Documents and Settings\mount top.bmp";
m_hBmpNew = (HBITMAP) LoadImage(
AfxGetInstanceHandle(),
file,
IMAGE_BITMAP,
0,
0,
LR_LOADFROMFILE);
if( m_hBmpNew == NULL )
{
AfxMessageBox("Load Image Failed");
}
else
{
m_stc.GetClientRect( &rectStaticClient );
rectStaticClient.NormalizeRect();
m_size.cx=rectStaticClient.Size().cx;
m_size.cy=rectStaticClient.Size().cy;
m_size.cx = rectStaticClient.Width();
m_size.cy = rectStaticClient.Height();
m_stc.ClientToScreen( &rectStaticClient );
ScreenToClient( &rectStaticClient);
m_pt.x = rectStaticClient.left;
m_pt.y = rectStaticClient.top;
GetObject( m_hBmpNew , sizeof(BITMAP), &m_bmInfo );
VERIFY(m_hBmpOld = (
HBITMAP)SelectObject
(m_dcMem,m_hBmpNew ) );

offsetx= m_pt.x;
offsety=m_pt.y;
InvalidateRect(&rectStaticClient);
}
}
GeneralRe: load image fail Pin
pubududilena15-Nov-04 20:31
pubududilena15-Nov-04 20:31 
GeneralRe: load image fail Pin
namaskaaram15-Nov-04 21:44
namaskaaram15-Nov-04 21:44 
GeneralRe: load image fail Pin
vc-programmer-15-Nov-04 21:59
vc-programmer-15-Nov-04 21:59 
GeneralRe: load image fail Pin
namaskaaram15-Nov-04 22:26
namaskaaram15-Nov-04 22:26 
GeneralTreeviw control and Unicode Pin
Alpha Siera15-Nov-04 17:46
Alpha Siera15-Nov-04 17:46 
GeneralHelp Pin
James198515-Nov-04 16:14
James198515-Nov-04 16:14 
GeneralRe: Help Pin
ThatsAlok15-Nov-04 23:10
ThatsAlok15-Nov-04 23:10 
QuestionHow to change font color of slide? Pin
cengyikun52115-Nov-04 15:33
susscengyikun52115-Nov-04 15:33 
AnswerRe: How to change font color of slide? Pin
cengyikun16-Nov-04 14:12
susscengyikun16-Nov-04 14:12 
GeneralHTML on CPropertySheet Pin
Jack_pt15-Nov-04 15:22
Jack_pt15-Nov-04 15:22 
GeneralC++ Help Pin
glowskull0315-Nov-04 14:14
glowskull0315-Nov-04 14:14 
GeneralRe: C++ Help Pin
DaFrawg15-Nov-04 20:58
DaFrawg15-Nov-04 20:58 
GeneralRe: C++ Help Pin
dharani16-Nov-04 23:42
dharani16-Nov-04 23:42 
GeneralRe: C++ Help Pin
DaFrawg18-Nov-04 3:33
DaFrawg18-Nov-04 3:33 
GeneralRe: C++ Help Pin
namaskaaram15-Nov-04 22:16
namaskaaram15-Nov-04 22:16 
GeneralRe: C++ Help Pin
Henry miller16-Nov-04 2:26
Henry miller16-Nov-04 2:26 
GeneralCommand line error D2022 Pin
bneacetp15-Nov-04 13:07
bneacetp15-Nov-04 13:07 

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.