hi all,
i need to display a pic on window, i know there's a class CBitmap but i can't find any sample code of it, can anyone teach me how to display a pic? thanks!!
hi all,
i need to display a pic on window, i know there's a class CBitmap but i can't find any sample code of it, can anyone teach me how to display a pic? thanks!!
it's easy.
if you create WM_PAINT event and you'll show onpaint function.
write code using bitblt api function please.
your dlg name:aa
ok?Code:void aadlg::onpaint() { CBitmap m_bmp; .. dc.BitBlt(...); }
thanks for reply,
but i dun understand the coding, and i need to add the pic in oninitdialog, how to do that? thanks much!!
what do you mean?
are you trying to display pic after creating bitmap in OnInitialDilaog()?
can i show your screenshot?
Last edited by sgh; 04-29-2008 at 01:44 AM.