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

Popular posts from this blog

command line - Use qwinsta in PowerShell ISE -

java - Incorrect order of records in M-M relationship in hibernate -

Python website log in: BIG-IP can not find session information in the request -