View previous topic :: View next topic |
Author |
Message |
rolftollerud
Joined: 01 May 2005 Posts: 6
|
Posted: Sun May 01, 2005 1:53 pm Post subject: trying to set FullRowSelect property for ListBox |
|
|
I am very pleased and impressed with DFL. Thank you!
I want to set FullRowSelect property in the "Spreadsheet" example.
"The FullRowSelect property allows you to specify if the entire row of the selected item is highlighted and clicking anywhere on an item's row causes it to be selected".
I tried like this to send a message to the listbox,
SendMessageA(myList.handle,4096 + 54,32,true); but it don't work.
What are the correct values for the parameters?
SendMessageA(myList.handle,LVM_SETEXTENDEDLISTVIEWSTYLE, LVS_EX_FULLROWSELECT, LVS_EX_TRACKSELECT);
Could you help me along?
Regards
Rolf Tollerud |
|
Back to top |
|
|
Chris Miller
Joined: 27 Mar 2004 Posts: 514 Location: The Internet
|
Posted: Sun May 01, 2005 4:30 pm Post subject: Re: trying to set FullRowSelect property for ListBox |
|
|
rolftollerud wrote: | I am very pleased and impressed with DFL. Thank you! |
Thanks!
Quote: | I want to set FullRowSelect property in the "Spreadsheet" example.
"The FullRowSelect property allows you to specify if the entire row of the selected item is highlighted and clicking anywhere on an item's row causes it to be selected".
I tried like this to send a message to the listbox,
SendMessageA(myList.handle,4096 + 54,32,true); but it don't work.
What are the correct values for the parameters?
SendMessageA(myList.handle,LVM_SETEXTENDEDLISTVIEWSTYLE, LVS_EX_FULLROWSELECT, LVS_EX_TRACKSELECT);
Could you help me along?
Regards
Rolf Tollerud |
Sorry, I think you are confusing list box with list view. ListBox does not support this. I am planning to do ListView after TabControl, which I have started on TabControl already. Please be patient
- Chris |
|
Back to top |
|
|
rolftollerud
Joined: 01 May 2005 Posts: 6
|
Posted: Mon May 02, 2005 12:55 am Post subject: ok! I'll wait! |
|
|
But could you possibly only help me to create a listview that I can play while I am waiting?
HWND window = CreateWindowExA(0, "DWndClass", "a listviw control",
WS_CAPTION | WS_MINIMIZEBOX | WS_SYSMENU | WS_VISIBLE,
CW_USEDEFAULT, CW_USEDEFAULT,
200, 100, HWND_DESKTOP,
cast(HMENU) null, GetModuleHandleA(null), null);
I take it that there is "DWndClass" that has to be something else?
Regards
Rolf Tollerud
(I know that it is too much to ask.. |
|
Back to top |
|
|
Chris Miller
Joined: 27 Mar 2004 Posts: 514 Location: The Internet
|
|
Back to top |
|
|
rolftollerud
Joined: 01 May 2005 Posts: 6
|
Posted: Wed May 04, 2005 10:23 am Post subject: You are doing me a great favor! |
|
|
Thank you!
Unfortunatly I have to ask again!
So far I have:
http://www.marianaturner.com/dfl/mylistview.d
The columns and Items seems to be created (but not the subItems)
But the main problem is that I se only a white rectangle on the sceen!
/rolf |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|