S
SignOff
HI,
I'm using a MSVC++ 7.0 with MFC.
Let'ssay I created a class derived from CStatic:
class Card : CStatic
{
......
}
Now, i want to use one in my CView loading a card.dll.
So what I'm doing:
CCView::OnDraw(CDC* pDC)
{
card = new CCard();
hModule = LoadLibrary("cards.dll");
card->Create("", WS_CHILD|WS_VISIBLE|SS_BITMAP|SS_CENTERIMAGE
,CRect(10, 10, 82, 107), this);
card->SetBitmap:LoadBitmap(hModule,MAKEINTRESOURCE(card->CardNumber)));
.....
}
but its now working. Will you set me by right way?
Idea is simple. We have a control CCard and want to engage in CView
with proper bitmap getting from cards.dll
Thanks in advance.
I'm using a MSVC++ 7.0 with MFC.
Let'ssay I created a class derived from CStatic:
class Card : CStatic
{
......
}
Now, i want to use one in my CView loading a card.dll.
So what I'm doing:
CCView::OnDraw(CDC* pDC)
{
card = new CCard();
hModule = LoadLibrary("cards.dll");
card->Create("", WS_CHILD|WS_VISIBLE|SS_BITMAP|SS_CENTERIMAGE
,CRect(10, 10, 82, 107), this);
card->SetBitmap:LoadBitmap(hModule,MAKEINTRESOURCE(card->CardNumber)));
.....
}
but its now working. Will you set me by right way?
Idea is simple. We have a control CCard and want to engage in CView
with proper bitmap getting from cards.dll
Thanks in advance.