|
You need to add items to the list with LVM_INSERTITEM before you can change the text or state of anything.
|
|
|
|
|
oh!!!
sorry i done it after your first sent, but it was my absent mide then i had read it properly and solve it.
Thnaks
ok i want to ask you the order management of list view .
when i read the file it will display the record but the first read goes bottom down .
e.g Means
if the read 0 number listitem it should be zero in order . then first and second but it display in reverse so is there any standard function is there
to manage list.
|
|
|
|
|
When you send LVM_INSERTITEM , you tell the control what position the new item should have. Remember to turn off the sort style of the control since you don't want it to sort the items automatically.
|
|
|
|
|
ya thanks Dear Mike .
your name is lovely mike...
i like it. i think this name is comman in US . isn't it?
|
|
|
|
|
Hello All
I am using VC6 to get an Image data type from SQL server.
I am using the bellow statement.
<br />
RFX_Binary(pFX, _T("[@File]"), mFileParam, 800000);
The statement works fine when I am trying to get the data from DB.
And also it works fine when I insert data of size is bellow 8KB. But when the data size exceed I an not able to insert data into SQL server using it.
Can you please give me any clue to search.
Regards
Anil
|
|
|
|
|
_anil_ wrote: But when the data size exceed I an not able to insert data...
Do you receive an error?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
thanks for the respond.
yes i am getting exception. it says that Right side data truncated. Actual error message may be different, Since its on japanese. But the meaning is this.
Regards
Anil
|
|
|
|
|
Hello,
I am currently working on a simple program with the Windows API that will be drawing polygons in a dialog box to provide the user with a guide to the values that are being graphed over them. My question is this:
I would like to be able to draw two shapes (bascially using the LineTo function and connecting all the lines) and then shade in the area between them. To give an example, think of a bullseye, I would like a large ring with a smaller ring inside it, with the larger ring colored in.
Anyone have any suggestions on where to start? I am fairly new to the drawing functions in Windows.
Thanks guys,
Joe
|
|
|
|
|
|
Can any one explain in brief the bind function in SDK for Socket programming
"Assigns a local name to an unnamed socket"
VIBIN
Sim Infosys
|
|
|
|
|
VIBIN wrote: Can any one explain in brief the bind function in SDK for Socket programming
"Assigns a local name to an unnamed socket"
The bind function is used on an unconnected socket before subsequent calls to the connect or listen functions. It is used to bind to either connection-oriented (stream) or connectionless (datagram) sockets. When a socket is created with a call to the socket function, it exists in a namespace (address family), but it has no name assigned to it. Use the bind function to establish the local association of the socket by assigning a local name to an unnamed socket.
ref: from MSDN 2005.
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
yeah, bind simply finds and open and available socket to commense ethernet communication. Without a binded socket, (an address through which the computer knows it can send data) it is impossible to process function like send and recv.
|
|
|
|
|
Hi,
I have a position within a listCtrlView
POSITION pos = listCtrl.GetFirstSelectedItemPosition();
and want to select thr row 'pos - 1'. Is there any command to do this?
Thanks, Gerhard
|
|
|
|
|
ensger wrote: listCtrl.GetFirstSelectedItemPosition();
I think the CListCtrl::GetNextItem() is more easy to use than the GetFirstSelectedItemPosition function. Cause it reurns the index of item
ensger wrote: and want to select thr row 'pos - 1'. Is there any command to do this?
you can use CListCtrl::SetItemState() to make the previous item selected.
nave
|
|
|
|
|
Gerhard wrote: Is there any command to do this?
Go Through SetItemState and SetSelectionMark API's of the ListCtrl.
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
Tried the following:
POSITION pos = listCtrl.GetFirstSelectedItemPosition();
int z = listCtrl.GetNextSelectedItem(pos);
.....
listCtrl.SetSelectionMark(z-1);
but the selected line remains, where it is??
|
|
|
|
|
Use listCtrl.SetItemState(z-1, LVIS_SELECTED, LVIS_SELECTED); instead.
|
|
|
|
|
Thanks very much. Works fine, but last question:
listCtrl.SetItemState(zeile, ???, ???);
What's ??? if I want the original selected line not to be focused any more?
|
|
|
|
|
ensger wrote: if I want the original selected line not to be focused any more?
Use 0 for the second argument.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Perfect. Thank's very much!!
|
|
|
|
|
ensger wrote: int z = listCtrl.GetNextSelectedItem(pos);
.....
listCtrl.SetSelectionMark(z-1);
For z = 0, here -1 will be passed to SetSelectionMark . Have you considered that ?
|
|
|
|
|
Not yet, but I see the problem with the first line. Thank's, Gerhard
|
|
|
|
|
Hello guys,
I am been working on developing a plugin for Adobe Director, Speech recognition.
I am been getting Stuck in a macro USES_CONVERSION.
It is unable to execute the statements following this macro.
Can anybody provide help exactly how to debug this particular error
Girish
Software Developer
|
|
|
|
|
Girish601 wrote: am been getting Stuck in a macro USES_CONVERSION.
It is just a macro. Can you show code ?
Girish601 wrote: It is unable to execute the statements following this macro.
How you know that ? Is function retuning from that line ?
|
|
|
|
|
USES_CONVERSION is a macro that allows to use BSTR string conversion functions like OLE2T and T2OLE, at least thats why I used it, but never gave me any problem...
Is defined in atlconv.h
#define USES_CONVERSION int _convert = 0; (_convert); UINT _acp = ATL::_AtlGetConversionACP() /*CP_THREAD_ACP*/; (_acp); LPCWSTR _lpw = NULL; (_lpw); LPCSTR _lpa = NULL; (_lpa)
I don't know man, no idea what could be the problem
|
|
|
|