Current location - Trademark Inquiry Complete Network - Futures platform - How to insert above the toolbar in VC++6.0?
How to insert above the toolbar in VC++6.0?
Define a bitmap of CBitmap, and then draw it with BitBlt function in OnPaint.

CDC * pMemDC = new CDC;

CBitmap * pBitmap = new CBitmap

//IDB_Mybitmap is the bitmap resource name.

pbit map-& gt; load bitmap(IDB _ my bitmap);

PME MDC->; CreateCompatibleDC(pDC);

PME MDC->; select object(pbit map);

pDC->; BitBlt( 100, 100,32,32,pMemDC,0,0,src copy);

Delete pMemDC

Delete pBitmap

Add the above code to your OnDraw(CDC*pDC) function, and the bitmap IDB_Mybitmap will be displayed on the screen.