Click here to Skip to main content
15,903,175 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow can i add and display status bar for a dialog based application? Pin
puppya13-Nov-08 21:16
puppya13-Nov-08 21:16 
AnswerRe: how can i add and display status bar for a dialog based application? Pin
Saurabh.Garg13-Nov-08 21:22
Saurabh.Garg13-Nov-08 21:22 
QuestionCRichEditCtrl not apble to display Chinese arabic and other language characters Pin
Dhiraj kumar Saini13-Nov-08 21:03
Dhiraj kumar Saini13-Nov-08 21:03 
AnswerRe: CRichEditCtrl not apble to display Chinese arabic and other language characters Pin
Iain Clarke, Warrior Programmer13-Nov-08 22:55
Iain Clarke, Warrior Programmer13-Nov-08 22:55 
QuestionByte array to image Pin
tanmay.kol13-Nov-08 20:04
tanmay.kol13-Nov-08 20:04 
AnswerRe: Byte array to image Pin
Saurabh.Garg13-Nov-08 21:19
Saurabh.Garg13-Nov-08 21:19 
GeneralRe: Byte array to image Pin
tanmay.kol13-Nov-08 21:36
tanmay.kol13-Nov-08 21:36 
GeneralRe: Byte array to image Pin
Iain Clarke, Warrior Programmer13-Nov-08 23:05
Iain Clarke, Warrior Programmer13-Nov-08 23:05 
http://en.wikipedia.org/wiki/Portable_Network_Graphics[^]

The above page gives quite a good explanation of the format. I'm assuming each byte in your array represents one pixel? You'll also need a palette (what colour is 0x17 ? ), and know the width and height of your picture.

Try just writing a simple 16x16 png to start with, then grow it.

Modification: PNG is a compressed format, but you could just do a rubbish job of that compression...

Good luck!

Iain.
QuestionRadio Button Transparency Problem [modified] Pin
rkshdixit13-Nov-08 19:46
rkshdixit13-Nov-08 19:46 
AnswerRe: Radio Button Transparency Problem Pin
Code-o-mat14-Nov-08 6:49
Code-o-mat14-Nov-08 6:49 
GeneralRe: Radio Button Transparency Problem Pin
rkshdixit17-Nov-08 19:09
rkshdixit17-Nov-08 19:09 
GeneralRe: Radio Button Transparency Problem Pin
Code-o-mat18-Nov-08 2:17
Code-o-mat18-Nov-08 2:17 
QuestionMouse Events Pin
Aabid13-Nov-08 19:46
Aabid13-Nov-08 19:46 
AnswerRe: Mouse Events Pin
SandipG 13-Nov-08 20:12
SandipG 13-Nov-08 20:12 
QuestionHow to enable resize when no border for window? Pin
tarunclassic13-Nov-08 19:03
tarunclassic13-Nov-08 19:03 
AnswerRe: How to enable resize when no border for window? Pin
Code-o-mat14-Nov-08 6:52
Code-o-mat14-Nov-08 6:52 
QuestionExecute Program error Pin
Nikesh Jagtap13-Nov-08 18:59
Nikesh Jagtap13-Nov-08 18:59 
QuestionRe: Execute Program error Pin
David Crow14-Nov-08 3:29
David Crow14-Nov-08 3:29 
AnswerRe: Execute Program error Pin
Nikesh Jagtap14-Nov-08 17:13
Nikesh Jagtap14-Nov-08 17:13 
QuestionRe: Execute Program error Pin
David Crow17-Nov-08 3:26
David Crow17-Nov-08 3:26 
QuestionWeird Graphics Bug [modified] Pin
Leslie Sanford13-Nov-08 18:34
Leslie Sanford13-Nov-08 18:34 
AnswerRe: Weird Graphics Bug Pin
Code-o-mat14-Nov-08 7:06
Code-o-mat14-Nov-08 7:06 
GeneralRe: Weird Graphics Bug Pin
Leslie Sanford14-Nov-08 7:24
Leslie Sanford14-Nov-08 7:24 
GeneralRe: Weird Graphics Bug Pin
Code-o-mat14-Nov-08 7:35
Code-o-mat14-Nov-08 7:35 
QuestionThe Editbox is working in XP, but it is white in color in Vista! Pin
LaHaHa13-Nov-08 17:39
LaHaHa13-Nov-08 17:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.