Click here to Skip to main content
15,902,634 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CListBox Pin
chethu66519-Jun-06 23:03
chethu66519-Jun-06 23:03 
GeneralRe: CListBox Pin
Hamid_RT19-Jun-06 23:21
Hamid_RT19-Jun-06 23:21 
Questionsolve this problem and let me know ...I t should be in C language Pin
ashokbngr19-Jun-06 22:38
ashokbngr19-Jun-06 22:38 
AnswerRe: solve this problem and let me know ...I t should be in C language Pin
Weiye Chen19-Jun-06 22:42
Weiye Chen19-Jun-06 22:42 
AnswerRe: solve this problem and let me know ...I t should be in C language Pin
ThatsAlok20-Jun-06 0:15
ThatsAlok20-Jun-06 0:15 
Questionhow we can change points of windows to picture control. Pin
happy_ram19-Jun-06 22:37
happy_ram19-Jun-06 22:37 
AnswerRe: how we can change points of windows to picture control. Pin
Viorel.19-Jun-06 23:04
Viorel.19-Jun-06 23:04 
QuestionIcons Pin
Wim Engberts19-Jun-06 22:15
Wim Engberts19-Jun-06 22:15 
I am currently working on a project where I need to use a number of icons and store them in a datafile that also contains other data. I could use something like:

ICONINFO Info;
DWORD dwSize;
char Bits [5000];
char Mask [ 250];


if ( m_hIcon == (HICON)1
|| m_hIcon == NULL)
return ;
GetIconInfo (m_hIcon, &Info);
dwSize = GetBitmapBits (Info.hbmColor, 5000, Bits);
dwSize = GetBitmapBits (Info.hbmMask , 250, Mask);

I could get the icon back again by using the CreateIconIndirect routine, using the data that I extracted in the above way.

However, this results in 4096 bytes of colorbits and another 128 bytes of mask data, whereas the original .ico file is only 766 bytes! Does anyone have a better idea on how to extract the bits of the icon and put them back in another icon again?

Secondly, I would very much like to add a very simple icon editor to my program. Does anyone know of an open-source icon editor that I could include in my project?

Thanks in advance,
William
AnswerRe: Icons Pin
Viorel.19-Jun-06 23:39
Viorel.19-Jun-06 23:39 
Questionwhich is better and why??? Pin
namaskaaram19-Jun-06 22:13
namaskaaram19-Jun-06 22:13 
AnswerRe: which is better and why??? Pin
Wim Engberts19-Jun-06 22:18
Wim Engberts19-Jun-06 22:18 
AnswerRe: which is better and why??? Pin
Laxman Auti19-Jun-06 22:21
Laxman Auti19-Jun-06 22:21 
AnswerRe: which is better and why??? [modified] Pin
Viorel.19-Jun-06 22:22
Viorel.19-Jun-06 22:22 
GeneralRe: which is better and why??? Pin
namaskaaram19-Jun-06 22:28
namaskaaram19-Jun-06 22:28 
GeneralRe: which is better and why??? Pin
Jörgen Sigvardsson19-Jun-06 23:44
Jörgen Sigvardsson19-Jun-06 23:44 
AnswerRe: which is better and why??? Pin
toxcct19-Jun-06 22:37
toxcct19-Jun-06 22:37 
GeneralRe: which is better and why??? Pin
Kevin McFarlane19-Jun-06 22:44
Kevin McFarlane19-Jun-06 22:44 
AnswerRe: which is better and why??? Pin
Jörgen Sigvardsson19-Jun-06 23:43
Jörgen Sigvardsson19-Jun-06 23:43 
QuestionMultithreading question - measure time, and block code Pin
uusheikh19-Jun-06 22:07
uusheikh19-Jun-06 22:07 
AnswerRe: Multithreading question - measure time, and block code Pin
Hamid_RT19-Jun-06 22:12
Hamid_RT19-Jun-06 22:12 
GeneralRe: Multithreading question - measure time, and block code Pin
uusheikh19-Jun-06 22:22
uusheikh19-Jun-06 22:22 
AnswerRe: Multithreading question - measure time, and block code [modified] Pin
Eytukan19-Jun-06 23:04
Eytukan19-Jun-06 23:04 
AnswerRe: Multithreading question - measure time, and block code Pin
Eytukan19-Jun-06 23:17
Eytukan19-Jun-06 23:17 
GeneralRe: Multithreading question - measure time, and block code Pin
uusheikh19-Jun-06 23:31
uusheikh19-Jun-06 23:31 
QuestionEnable edit control in Dialog access Enter and ESC Pin
zeus_master19-Jun-06 22:04
zeus_master19-Jun-06 22:04 

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.