Loading list elements in a CListBox
-
Hi! I try to fill a CListBox with elements of a CList object. The elements should be listed, as soon as the dialog will be opened. So, I have to do this via "OnInitDialog". But to get access to the list elements, OnINitDialog needs one parameter in his parameterlist. Does somebody know, how I can overwrite this function? Thanks a lot, hanno :)
-
Hi! I try to fill a CListBox with elements of a CList object. The elements should be listed, as soon as the dialog will be opened. So, I have to do this via "OnInitDialog". But to get access to the list elements, OnINitDialog needs one parameter in his parameterlist. Does somebody know, how I can overwrite this function? Thanks a lot, hanno :)
If you overload
OnInitDialog
it won't be called.OnInitDialog
must have the exact signature then only it's going to be called. You can do this write a new function calledInit
(...) with your parameter and call this function fromOnInitDialog
.Jesus Loves:rose:
--Owner Drawn:rose: --Defeat is temporary but surrender is permanent --Jesus is Lord:rose: