Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Keeping rows - listview/treeview selected
#1
How to keep a row of the listview and treeview selected (highlighted ) ?

Thx in advance, G
#2
Show selection when the control loses focus? Add style TVS_SHOWSELALWAYS (0x20) or LVS_SHOWSELALWAYS (0x8). These styles are not displayed in Styles dialog. Instead, click the small button by the Styles button and add this value to the current value.
#3
Ok...i seem to be adding the wrong way....

Current code:
Code:
Copy      Help
5 SysListView32 0x54010000 0x200 150 18 418 208 ""
4 SysTreeView32 0x54010000 0x200 4 18 238 208 ""

Pls advice
#4
Code:
Copy      Help
5 SysListView32 0x54010008 0x200 150 18 418 208 ""
4 SysTreeView32 0x54010020 0x200 4 18 238 208 ""
#5
is there any way to make the combo boxes in a dialog to have row color 2?
Smile 8)
#6
Thats what I had done...But I had added some SendMessages later on which were crapping up...

Thx, G

One more thing....Can I specify specific colors for selected rows. (For eg, now I am getting Windows selection colors)
#7
Quote:is there any way to make the combo boxes in a dialog to have row color 2?

Yes. Add CBS_OWNERDRAWFIXED style and process WM_MEASUREITEM and WM_DRAWITEM messages. Now I don't have an example.
#8
Quote:Can I specify specific colors for selected rows

Already asked recently.
#9
Gintaras Wrote:
Quote:is there any way to make the combo boxes in a dialog to have row color 2?

Yes. Add CBS_OWNERDRAWFIXED style and process WM_MEASUREITEM and WM_DRAWITEM messages. Now I don't have an example.
Ok thank you. if you could provide an example that would be sweet. but till then (if ever i will do it myself) if i have probs ill holla Big Grin
Smile 8)
#10
My bad, G

since I didnt implment that..I thought I never asked :-)


Forum Jump:


Users browsing this thread: 1 Guest(s)