Loading a Bitmap More than Once

M

matt

I have a function which displays a bitmap on a picture control. It
looks like the function can only be called once:

CDlg::OnDisplay()
{
VERIFY(m_bmp.LoadBitmap(hole1));
m_hole_1.SetBitmap(m_bmp);
}

m_bmp is a CBitmap declared in the header. Do I have to delete it and
re-establish it for it to be used a second time? If so, how do I do
that?

Thanks,

Matt
 
A

Aggro

matt said:
m_bmp is a CBitmap declared in the header. Do I have to delete it and
re-establish it for it to be used a second time? If so, how do I do
that?

CBitmap is not part of the C++ standard, and questions about it are off
topic in this newsgroup. You might want to try ask your question in
microsoft.public.vc.mfc group instead, if I assumed correctly that this
is about MFC.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top