Link to home
Start Free TrialLog in
Avatar of srikadi
srikadi

asked on

How to get the items in the view before window is created?

Hi,
i have some item in the list before starting the application.where i need to write the code to get the items in the list just after creation.
Avatar of Zoppo
Zoppo
Flag of Germany image

Hi srikadi,

please explain you problem more detailed: What kind of view/items/list? Where/what are they before the application starts?

ZOPPO
Avatar of srikadi
srikadi

ASKER

Hi ZOOPO,
i have CListView,CformView.if CListView contain any task  i need to enable one button in CFromView.
first iam disabling the button after that i am checking getItemcount of Clistview.if getItemcount>1 iam enabling..its working fine if the list doesnot contain any tasks in Listview before creation of the application.
but i want to test before creation of the application.if it contains ant task then it should enable ie on creation time..
iam very poor in english..sorry if i did any mistakes.
Hm - I still don't really understand this: '... in Listview before creation of the application' - how can there be items (tasks?) in the listview before the application runs?
Avatar of srikadi

ASKER

sometime i directly close the application..so when i open the application the nexttime the listview contains the previous items..so i want to enable button if the list contain items.
I still don't see the problem. When you start the application there can't be items in the list, the list has to be filled by the application. There must be some code in the application which adds and removes items to the list - that's where you can enable/disable the button.
Avatar of srikadi

ASKER

sorry if i can't expalin properly..
1)my list has some items..
2) i closed the application with out deleting the items in the list.
3)next tiem when i opened the list contain same item which were there before.
so
now initially i disbled the button in OnInitialUpdate() funtion..after that i am rading getcount()..if it contains items then i am enabling the button..
but i want..
to check just after appearing of the window..where i need to write the code..
ASKER CERTIFIED SOLUTION
Avatar of Zoppo
Zoppo
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial