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

C / C++ / MFC

 
QuestionHow to load some icons from a file into a listcontrol? Pin
zhonglin.liang28-Nov-05 15:59
zhonglin.liang28-Nov-05 15:59 
AnswerRe: How to load some icons from a file into a listcontrol? Pin
Gavin Taylor28-Nov-05 18:57
professionalGavin Taylor28-Nov-05 18:57 
GeneralRe: How to load some icons from a file into a listcontrol? Pin
zhonglin.liang28-Nov-05 19:30
zhonglin.liang28-Nov-05 19:30 
GeneralRe: How to load some icons from a file into a listcontrol? Pin
Gavin Taylor28-Nov-05 19:46
professionalGavin Taylor28-Nov-05 19:46 
GeneralRe: How to load some icons from a file into a listcontrol? Pin
zhonglin.liang28-Nov-05 20:18
zhonglin.liang28-Nov-05 20:18 
GeneralRe: How to load some icons from a file into a listcontrol? Pin
Gavin Taylor28-Nov-05 20:24
professionalGavin Taylor28-Nov-05 20:24 
GeneralRe: How to load some icons from a file into a listcontrol? Pin
zhonglin.liang28-Nov-05 21:05
zhonglin.liang28-Nov-05 21:05 
GeneralRe: How to load some icons from a file into a listcontrol? Pin
Gavin Taylor28-Nov-05 22:00
professionalGavin Taylor28-Nov-05 22:00 
LoadImage can be used to load icons, bitmaps and cursors all you've got to do is change the 4th paramter

<br />
HICON hIcon = NULL;<br />
hIcon = ( HICON ) LoadImage( NULL, TEXT( "c:\\icon.ico" ), IMAGE_ICON, 0, 0, LR_LOADFROMFILE | LR_DEFAULTSIZE );<br />
if( hIcon != NULL )<br />
{<br />
    // Icon loaded ok<br />
}<br />



Gavin Taylor
w: http://www.gavintaylor.co.uk

QuestionMFC Program looking for a good tool for a log box. Pin
King Link28-Nov-05 15:15
King Link28-Nov-05 15:15 
AnswerRe: MFC Program looking for a good tool for a log box. Pin
Christian Graus28-Nov-05 15:34
protectorChristian Graus28-Nov-05 15:34 
GeneralRe: MFC Program looking for a good tool for a log box. Pin
S Douglas28-Nov-05 19:06
professionalS Douglas28-Nov-05 19:06 
QuestionMultiple language support using static lib Pin
Harshabhi28-Nov-05 14:15
Harshabhi28-Nov-05 14:15 
AnswerRe: Multiple language support using static lib Pin
Gavin Taylor28-Nov-05 19:15
professionalGavin Taylor28-Nov-05 19:15 
Questionno operator found which takes a right-hand operand of type 'char' Pin
Lord Kixdemp28-Nov-05 14:02
Lord Kixdemp28-Nov-05 14:02 
AnswerRe: no operator found which takes a right-hand operand of type 'char' Pin
PJ Arends28-Nov-05 14:28
professionalPJ Arends28-Nov-05 14:28 
GeneralRe: no operator found which takes a right-hand operand of type 'char' Pin
Lord Kixdemp28-Nov-05 14:41
Lord Kixdemp28-Nov-05 14:41 
QuestionConverting PDF's to TIFF's Pin
bitznarf28-Nov-05 12:02
bitznarf28-Nov-05 12:02 
Questionproject graph analys Pin
senatort77728-Nov-05 11:00
senatort77728-Nov-05 11:00 
AnswerRe: project graph analys Pin
kakan28-Nov-05 19:08
professionalkakan28-Nov-05 19:08 
QuestionFilling an array with random characters Pin
mouaronc28-Nov-05 10:52
mouaronc28-Nov-05 10:52 
AnswerRe: Filling an array with random characters Pin
Gary R. Wheeler28-Nov-05 14:05
Gary R. Wheeler28-Nov-05 14:05 
Question[Message Deleted] Pin
Bobamagoo28-Nov-05 10:17
Bobamagoo28-Nov-05 10:17 
AnswerRe: Dynamically Loading Managed Code from a DLL Pin
PJ Arends28-Nov-05 10:24
professionalPJ Arends28-Nov-05 10:24 
QuestionHelp -Voice Recognition- Visual Basic...Excel Macro Pin
jakabo28-Nov-05 8:49
jakabo28-Nov-05 8:49 
AnswerRe: Help -Voice Recognition- Visual Basic...Excel Macro Pin
Christian Graus28-Nov-05 10:38
protectorChristian Graus28-Nov-05 10:38 

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.