dialogbar control
-
hi all, iam creating dialogbar activex control ..thru ATL.. i created one dialogbar resource... when i insert that control in test container..its not visible. if i want to see in test container,whats the procedure...can u please guid me through small code snippet? best regards, tirucapricorn
-
hi all, iam creating dialogbar activex control ..thru ATL.. i created one dialogbar resource... when i insert that control in test container..its not visible. if i want to see in test container,whats the procedure...can u please guid me through small code snippet? best regards, tirucapricorn
I'll show some code about card,write by myself,i'm chinese: void CCardsCtrl::OnDraw( CDC* pdc, const CRect& rcBounds, const CRect& rcInvalid) { // TODO: Replace the following code with your own drawing code. CBitmap* pOldBitmap = NULL; CBitmap bitmap; CDC bmpDC; CRect rect; CPoint ptLeftUp; //ÔËÐÐģʽÏÂÒÆ¶¯´°¿Ú if(AmbientUserMode()) { GetRectInContainer(&rect); rect.bottom -= m_sOffset; rect.top -= m_sOffset; MoveWindow(rect); } //»æÖÆÆË¿Ë bmpDC.CreateCompatibleDC(pdc); if(m_bBackground) //ÏÔʾ±³¾° { if(m_sBackBmp == 1) { bitmap.LoadBitmap(IDB_BITMAP_BACK1); } else { bitmap.LoadBitmap(IDB_BITMAP_BACK2); } } else //ÏÔÊ¾ÅÆÃæ { bitmap.LoadBitmap(IDB_BITMAP_11+m_sValue-1); } pOldBitmap = bmpDC.SelectObject(&bitmap); pdc->BitBlt(rcBounds.left, rcBounds.top, rcBounds.Width(), rcBounds.Height(), &bmpDC, rcBounds.left, rcBounds.top, SRCCOPY); bmpDC.SelectObject(pOldBitmap); bitmap.DeleteObject(); } ddddddddddddddddddddd