HANDLE of a window
-
Hi, I have placed a ComboBox in a formview.In OnInitialUpdate i am setting the ComboBox Current selection to Zero.When i run the application i am getting an ASSERTION.When i debug the application,i find the problem at SetCurSel funtion.I am getting the Handle of ComboBox as NULL.How to over come this problem. Thanks in before James
-
Hi, I have placed a ComboBox in a formview.In OnInitialUpdate i am setting the ComboBox Current selection to Zero.When i run the application i am getting an ASSERTION.When i debug the application,i find the problem at SetCurSel funtion.I am getting the Handle of ComboBox as NULL.How to over come this problem. Thanks in before James
maybe u change resource ID of the control? use class wizard to delete member of the CListBox then add it again. I just guess so.
-
Hi, I have placed a ComboBox in a formview.In OnInitialUpdate i am setting the ComboBox Current selection to Zero.When i run the application i am getting an ASSERTION.When i debug the application,i find the problem at SetCurSel funtion.I am getting the Handle of ComboBox as NULL.How to over come this problem. Thanks in before James
If insert another combobox and declare a variable for it what happens?
WhiteSky
-
Hi, I have placed a ComboBox in a formview.In OnInitialUpdate i am setting the ComboBox Current selection to Zero.When i run the application i am getting an ASSERTION.When i debug the application,i find the problem at SetCurSel funtion.I am getting the Handle of ComboBox as NULL.How to over come this problem. Thanks in before James
Make sure you are trying to use the combo box after the base class version of
OnInitialUpdate(...)
has been called, or your controls may not have been created or attached-to yet. Peace!-=- James
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
DeleteFXPFiles & CheckFavorites (Please rate this post!)