
Yet another wonderful ListBox initialization problem
Quote:
>Hey there,
> I am having another problem with ListBox initialization, this time in a
>Dialog Box. All I need to know is when the Listbox is attached to a window
>handle when it's created by a dialog box.
At the same time that all your other dialog controls are attached to
their member variables; namely, during OnInitDialog, when your OnInitDialog
handler calls the base class's OnInitDialog. So any code to initialize a
control--for example, adding the initial set of strings to a listbox--should
generally be in OnInitDialog, after the call to the base class's OnInitDialog.
--
\o\ If you're interested in books and stories with transformation themes, \o\
/o/ please have a look at <URL:http://www.halcyon.com/phaedrus>. Thanks! /o/
\o\ FC1.21:FC(W/C)p6arw A- C->++ D>++ H+ M>+ P R T++++ W** Z+ Sm RLCT \o\
/o/ a cmn++++$ d e++ f+++ h- i++wf p-- sm# /o/