Home » U++ Library support » U++ Library : Other (not classified elsewhere) » [IMPROVEMENT - WIN32] TreeCtrl should use native icons (open and close).
[IMPROVEMENT - WIN32] TreeCtrl should use native icons (open and close). [message #40557] |
Mon, 12 August 2013 21:48 |
|
Klugier
Messages: 1085 Registered: September 2012 Location: Poland, Kraków
|
Senior Contributor |
|
|
Hello,
I have noticed that we can emulate TreeCtrl "plus" and "minus" images on Microsoft Windows. Here is two additional lines of code for Win32 backend (ChWin32 - void ChHostSkin()):
CtrlImg::Set("treeplus", XpImage(XP_TREEVIEW, TVP_GLYPH, GLPS_CLOSED, Null, Size(11, 11)));
CtrlImg::Set("treeminus", XpImage(XP_TREEVIEW, TVP_GLYPH, GLPS_OPENED, Null, Size(11, 11)));
Of course, we need to add additional widget to XpTheme.dll:
I enclose two necessary files (ChWin32.cpp and XPTheme.dli from CtrlLib package).
P.S.
Sample screenshot:
Sincerely,
Klugier
U++ - one framework to rule them all.
[Updated on: Thu, 15 August 2013 16:07] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Fri Dec 13 22:20:41 CET 2024
Total time taken to generate the page: 0.01747 seconds
|