Re: high color imagelist in treeview
"izm_ka" <izm_ka-/[email protected]>
| Newsgroups | gmane.comp.windows.wtl |
|---|---|
| Message-ID | <[email protected]> |
> Do you mean 32-bit colour with alpha?
Yes, this is it.
> make sure your manifest has the appropriate dependency.
Yep, I found the way to specify the depecnedcy:
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")
I have included manifest into the rc file:
IDR_MANIFEST 18 DISCARDABLE "res\\manifest.xml"
manifest.xml content:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
processorArchitecture="x86"
version="5.1.0.0"
type="win32"
name="WTLnirvana"
/>
<description>WTLnirvana</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
publicKeyToken="6595b64144ccf1df"
language="*"
processorArchitecture="x86"
/>
</dependentAssembly>
</dependency>
</assembly>
Loading image can be done like this:
CImageList iltv;
iltv.CreateFromImage(IDB_LOGGERS, 16, 0, CLR_DEFAULT,IMAGE_BITMAP, LR_CREATEDIBSECTION);
m_wndTV.SetImageList(iltv);
Thank you for pointing to right direction!
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/wtl/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/wtl/join
(Yahoo! ID required)
<*> To change settings via email:
[email protected]
[email protected]
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/