windows - Doesn't ListView_InsertColumn work while handling WM_INITDIALOG? -
i called listview_insertcolumn insert columns listview while handling wm_initdialog message, couldn't see columns in listview, though return value of listview_insertcolumn not -1.
however, did work if called function while handling button-clicked message.
why? if that's case, how can initialize listview?
i'm using visual studio 2010
it turns out it's oversight. during wm_initdialog, tried use global handle variable gdlg handle of listview. value of gdlg assigned return value of createdialog. didn't know wm_initdialog occurs before createdialog returns;
Comments
Post a Comment