Click here to Skip to main content
15,909,953 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Access Violation in Unicode Debug. Pin
Harshapaulp26-Jun-06 0:32
Harshapaulp26-Jun-06 0:32 
Questionentry in registry Pin
nandu2021-Jun-06 19:02
nandu2021-Jun-06 19:02 
AnswerRe: entry in registry Pin
_AnsHUMAN_ 21-Jun-06 19:32
_AnsHUMAN_ 21-Jun-06 19:32 
AnswerRe: entry in registry Pin
Laxman Auti21-Jun-06 20:59
Laxman Auti21-Jun-06 20:59 
QuestionHow to extract an icon from a CImageList Pin
xuwenq8821-Jun-06 18:10
xuwenq8821-Jun-06 18:10 
AnswerRe: How to extract an icon from a CImageList Pin
FarPointer21-Jun-06 18:30
FarPointer21-Jun-06 18:30 
GeneralRe: How to extract an icon from a CImageList Pin
xuwenq8821-Jun-06 18:43
xuwenq8821-Jun-06 18:43 
GeneralRe: How to extract an icon from a CImageList Pin
FarPointer21-Jun-06 18:45
FarPointer21-Jun-06 18:45 
Taken From MSDN :-
Just look for that function in MSDN.
Example<br />
<br />
// The pointer to my image list.<br />
extern CImageList* pmyImageList;<br />
extern CDC* pmyDC;<br />
<br />
int   i, dx, cx, cy, nCount = pmyImageList->GetImageCount();<br />
HICON hIcon;<br />
<br />
::ImageList_GetIconSize(*pmyImageList, &cx, &cy);<br />
<br />
// Draw the images of the image list on the DC.<br />
for (dx=0,i=0;i < nCount;i++)<br />
{<br />
   hIcon = pmyImageList->ExtractIcon(i);<br />
<br />
   pmyDC->DrawIcon(dx, 0, hIcon);<br />
   dx += cx;<br />
}


Regards,
FarPointer
Blog:FARPOINTER
GeneralRe: How to extract an icon from a CImageList Pin
xuwenq8822-Jun-06 5:20
xuwenq8822-Jun-06 5:20 
QuestionCan someone compile this [modified] Pin
Cbadboy21-Jun-06 17:48
Cbadboy21-Jun-06 17:48 
AnswerRe: Can someone compile this Pin
Justin Tay21-Jun-06 19:16
Justin Tay21-Jun-06 19:16 
AnswerRe: Can someone compile this Pin
Cbadboy22-Jun-06 5:53
Cbadboy22-Jun-06 5:53 
QuestionHelp with troublesome code! Pin
Lord Kixdemp21-Jun-06 17:10
Lord Kixdemp21-Jun-06 17:10 
AnswerRe: Help with troublesome code! [modified] Pin
Cedric Moonen21-Jun-06 20:24
Cedric Moonen21-Jun-06 20:24 
AnswerRe: Help with troublesome code! Pin
kakan21-Jun-06 22:12
professionalkakan21-Jun-06 22:12 
GeneralRe: Help with troublesome code! Pin
Lord Kixdemp22-Jun-06 7:41
Lord Kixdemp22-Jun-06 7:41 
GeneralRe: Help with troublesome code! Pin
kakan25-Jun-06 19:11
professionalkakan25-Jun-06 19:11 
Questionstrings and file IO ...!! Pin
Nawar_nrr21-Jun-06 16:22
Nawar_nrr21-Jun-06 16:22 
AnswerRe: strings and file IO ...!! Pin
_AnsHUMAN_ 21-Jun-06 17:50
_AnsHUMAN_ 21-Jun-06 17:50 
GeneralRe: strings and file IO ...!! Pin
Nawar_nrr21-Jun-06 20:14
Nawar_nrr21-Jun-06 20:14 
GeneralRe: strings and file IO ...!! Pin
_AnsHUMAN_ 21-Jun-06 20:27
_AnsHUMAN_ 21-Jun-06 20:27 
GeneralRe: strings and file IO ...!! Pin
Nawar_nrr22-Jun-06 16:20
Nawar_nrr22-Jun-06 16:20 
GeneralRe: strings and file IO ...!! Pin
Nawar_nrr22-Jun-06 16:51
Nawar_nrr22-Jun-06 16:51 
GeneralRe: strings and file IO ...!! Pin
_AnsHUMAN_ 21-Jun-06 20:39
_AnsHUMAN_ 21-Jun-06 20:39 
QuestionAsk about drawing the client Pin
zouchao111221-Jun-06 16:16
zouchao111221-Jun-06 16:16 

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.