Initial
This commit is contained in:
36
mdiwin/BMPLNK.CPP
Normal file
36
mdiwin/BMPLNK.CPP
Normal file
@@ -0,0 +1,36 @@
|
||||
#include <mdiwin/bmplnk.hpp>
|
||||
|
||||
LinkedBitmap::LinkedBitmap(void)
|
||||
: mCtlID(0), mhBitmap(0), mReferenceCount(0), mhLibrary(0)
|
||||
{
|
||||
}
|
||||
|
||||
LinkedBitmap::LinkedBitmap(int ctlID,String &bitmapName,HINSTANCE hLibrary)
|
||||
: mCtlID(ctlID), mReferenceCount(1), mhLibrary(hLibrary), mBitmapName(bitmapName)
|
||||
{
|
||||
loadBitmap();
|
||||
}
|
||||
|
||||
LinkedBitmap::LinkedBitmap(const LinkedBitmap &someLinkedBitmap)
|
||||
: mCtlID(someLinkedBitmap.mCtlID), mReferenceCount(someLinkedBitmap.mReferenceCount),
|
||||
mhLibrary(someLinkedBitmap.mhLibrary), mBitmapName(someLinkedBitmap.mBitmapName)
|
||||
{
|
||||
loadBitmap();
|
||||
}
|
||||
|
||||
LinkedBitmap::~LinkedBitmap()
|
||||
{
|
||||
if(mhBitmap)::DeleteObject(mhBitmap);
|
||||
}
|
||||
|
||||
WORD LinkedBitmap::drawBitmap(HDC hDC,RECT locationRect)
|
||||
{
|
||||
DrawBitmap::drawBitmap(hDC,mhBitmap,locationRect);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
WORD LinkedBitmap::drawBitmap(void)
|
||||
{
|
||||
DrawBitmap::drawBitmap(mhBitmap);
|
||||
return TRUE;
|
||||
}
|
||||
Reference in New Issue
Block a user