c++ - Using ListControl in a Dialog window -


can listcontrol used in dialog in non-mfc project? using visual c++ 2010.

the examples have seen far uses mfc, seems me listcontrol part of mfc. code working on not mfc based, however, visual studio still allows adding listcontrol dialog in resource view, , generates rc code list control. guess should able use it. however, not use standard method found online add variable listcontrol , use it.

how can use listcontrol in case? e.g. adding column or write cell? code example help.

the clistctrl class mfc class. can used within mfc project.

however, clistctrl wrapper around listview common control, , listview control can used in windows application—no mfc required.

the resource editor included visual c++ (confusingly) refers listview control "list control". can insert 1 on dialog, , insert listview control.

if you're using mfc, can choose create member variable corresponding control. type of member variable clistctrl, because encapsulating access listview control on dialog.

if not using mfc, can still use listview control, you'll have use standard sdk mechanisms accessing , manipulating it. example, insert item listview control on dialog, obtain control's window handle (getdlgctrlid) , send lvm_insertitem message. sdk documentation contains sample code listings, rather poor way learn. best resource old windows sdk programming still charles petzold's programming windows.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -