Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Baffling Bitmaps :)

Status
Not open for further replies.

sntpaul

Programmer
Jan 31, 2003
4
GB
Hi all,

Is it possible to create a bitmap like CBitmap *a=new CBitmap() of a given width, height, etc. and then actually set its pixel colours, ie

a->setPixel(20, 30, red, green, blue)

i think this is possible - according to vc++ help.

but...

then is it possible to attach this bitmap to a dialog control to display the bitmap in the dialog? (maybe by using a CPictureHandler or something)

i'm not quite sure how to go about this. i'm using MFC and i have just got to grips with that! i'm a tad baffled by it all so any help would be much appreciated.

thanks,
Paul./
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top