Home » U++ Library support » TreeCtrl » Where can I store 32 bit data
|
|
|
|
Re: Where can I store 32 bit data [message #4833 is a reply to message #4826] |
Wed, 23 August 2006 11:38 |
|
fudadmin wrote on Wed, 23 August 2006 04:44 |
hongdong wrote on Wed, 23 August 2006 08:05 |
it's a little hard to understand
|
Please, post your minimal code sample.
|
sorry,not ready yet,I used LPARA to store database record id in my MFC code,so I would to do the same thing in U++,but I found U++ TreeCtrl doesn't have such kind of variable.
btw,after I played with U++ a day,I really like it now,I create a simple GUI,build with MingW,optimized for size,upx the exe file,finally the size is 537kb.attach is the screenshot
if I didn't try,I never know U++ is so good!!!
-
Attachment: Netpath.PNG
(Size: 36.08KB, Downloaded 2422 times)
|
|
|
Re: Where can I store 32 bit data [message #4835 is a reply to message #4833] |
Wed, 23 August 2006 12:06 |
|
mirek
Messages: 14039 Registered: November 2005
|
Ultimate Member |
|
|
Instead of LPARAM, in U++ you can associate TWO Values with each tree item.
First one is just stored (key). You can retrieve it later (e.g. for active item).
Second one is displayed in TreeCtrl. You can even define HOW it is displayed using the Display class.
You can directly store virtually any concrete type to the Value and you can make your own types "Value-compatible". Some of U++ Value-compatible types are String, int, double, int64, bool, Image, Color, Font, Drawing, Date, Time....
Mirek
|
|
|
|
Re: Where can I store 32 bit data [message #4859 is a reply to message #4835] |
Wed, 23 August 2006 16:57 |
|
luzr wrote on Wed, 23 August 2006 06:06 | Instead of LPARAM, in U++ you can associate TWO Values with each tree item.
First one is just stored (key). You can retrieve it later (e.g. for active item).
Second one is displayed in TreeCtrl. You can even define HOW it is displayed using the Display class.
You can directly store virtually any concrete type to the Value and you can make your own types "Value-compatible". Some of U++ Value-compatible types are String, int, double, int64, bool, Image, Color, Font, Drawing, Date, Time....
Mirek
|
thanks for your explanation,I will try when ready.
|
|
|
Goto Forum:
Current Time: Sat Sep 21 03:04:42 CEST 2024
Total time taken to generate the page: 0.03556 seconds
|