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

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -