473,396 Members | 1,608 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

ListView and the edit box

I have a listview control that doesn't initialize the size of the edit field properly when an item's label is being edited. For some dumb reason it's often much smaller than the actual label

I have tried to fix this bug myself but that fails too. I handled the LVN_BEGINLABELEDIT notification, read the actual size of the item's label with GetItemRect(..., LVIR_LABEL), grabbed the handle to the edit field and attempted to correct its incorrect size with the SetWindowPos function. The SetWindowPos function did absolutely nothing!

Why doesn't that edit field open at the same dimensions it appears under the listview icon? Why won't Windows at least allow me to resize it once it's been created?
Nov 16 '05 #1
1 1801
What, 6 billion people on this planet and I'm the only one who's run
into this problem??? ;-)

Hello?

"Steve" <sc**@vol.com> wrote in message news:<3E**********************************@microso ft.com>...
I have a listview control that doesn't initialize the size of the edit field properly when an item's label is being edited. For some dumb reason it's often much smaller than the actual label.

I have tried to fix this bug myself but that fails too. I handled the LVN_BEGINLABELEDIT notification, read the actual size of the item's label with GetItemRect(..., LVIR_LABEL), grabbed the handle to the edit field and attempted to correct its incorrect size with the SetWindowPos function. The SetWindowPos function did absolutely nothing!

Why doesn't that edit field open at the same dimensions it appears under the listview icon? Why won't Windows at least allow me to resize it once it's been created?

Nov 16 '05 #2

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

Similar topics

2
by: John Lauwers | last post by:
I know you can edit the first column of the listview control, is there a way to edit the second and/or the other columns? greets John
1
by: newbie | last post by:
Hello, I maybe asking too much in a single posting, but here it goes: I building a windows form that mimic's the Outlook XP GUI. Its a three pane form that will allow a user to view and edit...
2
by: Bob Rock | last post by:
Hello, how can I create a ListView that allows to user to edit its columns contents? Thx. Bob Rock
3
by: MikeY | last post by:
Hopefully someone can help me on this. I am using C#, making Windows forms. I have created a listView with checkbox's. I have enabled the checkboxes under the properties, and all the data,...
5
by: Matt Michael | last post by:
Hi, I'm having a problem working with a listview in an application I'm writing. Currently, whenever the selectedindex changed event fires, it loads up a htmledit control, and other labels on the...
7
by: BobAchgill | last post by:
I am trying to decide which of these controls to use to implement letting my user select a full row from MyList. The MyList has several columns which would be nice to sort by at run time. The...
6
by: Stanley | last post by:
Hi all! I have problem trying to edit the item in listview. When I set LabelEdit to True, I can only edit the first column's item. How about editing another column's item?? Thanks in advance! ...
0
by: DJOuk | last post by:
Posted this on Asp.Net, seems to be a hard problem, I still can't work it out I have a edit button, this works fine, until I add the code that prevents the edit button from being seen by users who...
0
by: Marius Manolea | last post by:
Hi, I have a strange problem, I don't receive any modifications from listview in edit mode (OldValues & NewValues are empty) <asp:ListView ID="lvEditPersonRoles" runat="server"...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...
0
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,...

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.