Hi,
I did a program which is dialog based application,in that i add listbox dynamically by deriving a class form CListBox class.and the list box is created in OnInitDialog() method.but when i add the listbox to the dialog using DDX_Control function it is failed to assert the listbox,because 3rd parameter is not initialized which is null.so, i need to initialize the list box before dialog gets intialized.
so, this is is done in precreatewindow() . but i am not able to call this function.it never execute.
can any one help me , can we call precreatewindow() function from the CDialog class?
if, No what is the exact reason?
thanks in advance..
thammalatha 0 Newbie Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
thammalatha 0 Newbie Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
thammalatha 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.