473,809 Members | 2,780 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to CListCtrl.SetIt emPosition (MFC) a ListView (C#)

Hi everyone !

I would like to set an ListViewItem at a special position, into a ListView.
There is Bounds, but it's a propertie, that can be only get !
(i could to that in MFC with CListCtrl.SetIt emPosition(...) )

thanks
Nov 16 '05 #1
2 4205
Hi,

You can use listView.Items. Insert (...) method to insert an item to the
specific position into ListView

--
Regards,
Peter Jausovec
(http://blog.jausovec.net)
"Herbert VON GRÜNENWALD" <he************ *******@microso ft.com> je napisal v
sporocilo news:%2******** ********@TK2MSF TNGP09.phx.gbl ...
Hi everyone !

I would like to set an ListViewItem at a special position, into a
ListView.
There is Bounds, but it's a propertie, that can be only get !
(i could to that in MFC with CListCtrl.SetIt emPosition(...) )

thanks

Nov 16 '05 #2
Peter Jausovec wrote:
Hi,

You can use listView.Items. Insert (...) method to insert an item to the
specific position into ListView


i would like to place the item at a special coordinates, not at a
special index.

like:

MFC: BOOL CListCtrl::SetI temPosition(int nItem, POINT pt);
Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1163
by: Abdolhosein Vakilzadeh Ebrahimi | last post by:
I need to position items in System.Windows.Forms.ListView, manually. In MFC we can do it using SetItemPosition, but how in .NET? thanks
4
4107
by: Joseph Smith | last post by:
Well I just started playing with VC++ yesterday, so keep it simple if you can. thx. Anyway, I'm having problems with a CListCtrl in report view. The first column seems to display fine, but the other columns don't. Have a look at my function for adding data: void CMP3RenamerDlg::PopulateList(CString str) { CFileFind finder;
2
2162
by: Chandrakanth | last post by:
How to make the selection in CListCtrl to appear in different color?
0
1939
by: Rajko | last post by:
Here is something I find unusual. I implemented Drag and Drop to CListCtrl. First I created my own class myCListCtrl from CListCtrl. I implemented OnMouseMove and OnLButtonUp message handlers in class. Unusual : If I don't use RedrawWindow() I get trails from m_dragImage. and second thing is I don't need to use DragShowNolock(FALSE) and DragShowNolock(TRUE) to
0
1888
by: Ryan Albarelli | last post by:
Here's one I've spent the last 6 hours trying to figure out... I have a CListCtrl derived class. The first time I click an item in the list to select it, I see a lot of multimedia dll's being loaded and unloaded causing a noticable delay before the item selects. After that its fine. The funny thing is, my set up is exactly the same as another program I have and it doesn't load anything! I created a stock MFC DLG app with a CListCtrl...
0
2278
by: Victor | last post by:
Hi everybody! VS.NET 2003 C++ MFC project for Windows XP I would like to use a CListCtrl control in a dialog. So I have #include'd "afxcmn.h" in my CMyDialog.h and declared a variable CListCtrl list; This compiles fine. But now I try to invoke a function list.SetView(0). The compiler says : 'SetView' is not a member of the CListCtrl. I inquired into the afxcmn.h and found that this function is only
1
2267
by: Vic.Dong | last post by:
Hello, all: How to draw a icon of alpha channel from CImagelist to listview control on Windows XP? B.R. VIC
4
5596
by: Steve | last post by:
Hi all, I don't want to use the datagrid if I don't have to. Is there a way to setup a ListBox to have more than one checkbox column? I need something like this | Include || Set as Default || Other columns... | asdasdasd digity-digity!
1
6638
by: rag84dec | last post by:
Hi, I have many check boxes in a list control.My problem is to uncheck the check box if there is a check box already checked.How can i do??..I tried doing the below but it checks the first check box and unchecks the others. void SomeClass::OnCheckboxChanged ( NMHDR* pNMHeader, LRESULT* pResult ) { func(); }
0
10640
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10376
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10387
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9200
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7662
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4332
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3861
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3015
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.