![]() |
A problem of CXTOutBarCtrl remove |
Post Reply
|
| Author | |
redduke
Newbie
Joined: 24 July 2005 Location: China Status: Offline Points: 4 |
Post Options
Thanks(0)
Quote Reply
Topic: A problem of CXTOutBarCtrl removePosted: 25 July 2005 at 3:37am |
|
when i remove the first folder of the CXTOutBarCtrl it seems that others folder's index have been changed. but i do not want them to be changed (because i want to insert items with the indexs that i stored in create these folders .and the item data is read from the network . so i must know the folder index ) how can i make it ? is there any handles that point to the Folder or item just as the HTREEITEM in the tree ctrl ? thanks |
|
![]() |
|
bevpet
Newbie
Joined: 01 April 2005 Location: Canada Status: Offline Points: 39 |
Post Options
Thanks(0)
Quote Reply
Posted: 26 July 2005 at 3:13pm |
|
you should never use/rely on the index value for a key value of a record from a database or such. use the controls data storage object to store data specific values for your control: Call this member function to set the item data (lParam) for the specified item in the currently selected folder. virtual void SetItemData(
const int iIndex,
const DWORD dwData
);
iIndex Index of the item to set item data for. dwData Item data (lParam) to set. Call this member function to get the item data (lParam) for the specified item in the currently selected folder. virtual DWORD GetItemData(
const int iIndex
) const;
iIndex Index of the item to retrieve item data for. A DWORD value.
HTH
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |