Dear Sir,
Please suggest how to create custom focus for Cfbsbitmap image. I am able to create bitmap & draw its on screen. but my problem is how to handle some event with bitmap focus. I am not able to handle their focus. please see my below code-
Code:
void CMyControlTestContainer::ShowMask()
{
_LIT(KFileName, "c:\\data\\Images\\14.bmp");
CFbsBitmap* iBitmap1 = new (ELeave) CFbsBitmap;
iBitmap1 = LoadL(KFileName);
delete iBitmap5;
iBitmap5 =iBitmap1;
//iBitmap =NULL;
DrawDeferred();
}
void CMyControlTestContainer::Draw( const TRect& aRect ) const
{
// [[[ begin generated region: do not modify [Generated Contents]
CWindowGc& gc = SystemGc();
gc.SetBrushColor(KRgbGray);
gc.SetBrushStyle(CGraphicsContext::ESolidBrush);
gc.Clear( aRect );
if((iBitmap5 != NULL) && (iBitmap5->Handle() != 0))
{
//gc.DrawRect(aRect);
gc.BitBlt(TPoint(180,190), iBitmap5);
}
}
On page load I have 5 bitmap on screen. & but i have no any control to handle or to set focus of that bmp is true.
If i am able to find out that this bitmap is focus then handle some event on that.
please suggest can i set focus of control is true if yes then how?
thanx in advance!
Regards,
Satish