Ah, so you are running on Vista after all. Then you should
familiarize yourself with the new task dialog. AFAIK standard
dialogs don't support shield drawing.
BTW, your using ATL is kind of irrelevant...
--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnicko...@mvps.org
MVP VC FAQ:http://vcfaq.mvps.org
=====================================
<ricciu...@gmail.com> wrote in message
news:1183543115.356319.235090@k29g2000hsd.googlegroups.com...
Hi,
Excuse me I've found solution for my problem redraw button control by
means of event OwnerDraw(...) and function API PrivateExtractIcons(...
on user32.dll.
another question again...
Why don' t working call function:
SendMessage(GetDlgItem(hWnd, IDOK), BCM_SETSHIELD, 0, TRUE);
on ATL '.exe' project ?
Thanks for all.
Riccardo.
Alexander Nickolov ha scritto:
The shield icon does not exist on OSes prior to Vista. Check
the return code and verify it's failing on WinXP. What happens
is you are drawing garbage...
--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnicko...@mvps.org
MVP VC FAQ:http://vcfaq.mvps.org
=====================================
<ricciu...@gmail.com> wrote in message
news:1182634524.198715.252000@n2g2000hse.googlegroups.com...
Hi,
I am doing a project which is using ATL,COM (not using MFC) for MS
Windows Vista but for this project i compiled in Windows XP. I must
insert the icon shield in standard Button on Dialog, unfortunately i
don' t succeed to insert icon IDI_SHIELD correct. I try to use the
API
functions LoadImage and DrawIconEx but the image displayed appear
compressed.Someone knows like visualizing the icon correctly? It's
possible ?
Thanks for all.
Riccardo.
great work for me.