|
hello all, i have a problem need your help...
I show amount data in virtual listctrl fast,but i click a item ,the item text will be recovered ,,i want to fix the text in each item when them showed like in real mode.
I search much,,but i didn't get the solution,,i need your help,thanks.
|
|
|
|
|
yiyinkuang wrote: I show amount data in virtual listctrl fast...
I'm with you so far.
yiyinkuang wrote: ...but i click a item ,the item text will be recovered...
Are you talking about using GetItemText() or GetItem() in response to a LVN_ITEMCHANGED message?
yiyinkuang wrote: ...i want to fix the text in each item when them showed like in real mode.
This is unclear in so many ways.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
yes,,i try to use GetItemText store item text ,,but GetItemText will trigger the item text change
|
|
|
|
|
yiyinkuang wrote: try to use GetItemText store item text...
Store it where, in the list control or some data structure?
yiyinkuang wrote: but GetItemText will trigger the item text change
Nonsense (assuming you are referring to the LVN_ITEMCHANGED message). That would only happen if you used SetItemText() .
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
thank you,,use GetItemText will send LVN_GETDISPINFO,,and function OnGetdispinfoList will change the item text
|
|
|
|
|
yiyinkuang wrote: ...function OnGetdispinfoList will change the item text
In a manner of speaking, yes.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
(assuming I understand what you want)
If you have a "virtual" list ctrl (CListBox or CListCtrl?), then you should have an underlying data structure somewhere that holds the data that is displayed by the list.
In you derived list ctrl control, there should be a method to display each item individually something like DrawItem ); usually, it's in that method that you fetch the data from your data structure and "format" it correctly to be displayed in the list ctrl.
This signature was proudly tested on animals.
|
|
|
|
|
thank you ,i have a struct for displaying ,,but the struct data updata dynamic,,i can not alloc memory as the image for dispalyed data,,because the data is too huge.
|
|
|
|
|
How to change background color of button on dialog box in mfc
Project Engineer
|
|
|
|
|
Start by searching for WM_CTLCOLORBTN .
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Color Button[^].
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
Hi,
How can i read the meta-data information of files using VC++. I mean the information we see when we change the folder view to details. eg:- Author of MS-Word document etc.
thanks,
J.
|
|
|
|
|
Voila[^]
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Hello all
I have a big problem after upgrading to IE8 . In our filetransfer module we are using wininet_connect(..) to establish connections via gSoap client . It has been working fine till we upgraded to IE8 with wininet.dll version 8.0 . The problem is that the wininet_callback is getting INTERNET_STATUS_CONNECTION_CLOSED message due to which gSoap client is disconnecting . This does not happen in IE6 and its wininet.dll version ...
Has anyone faced this problem ?
redindian
|
|
|
|
|
Why don't execution function
MessageBox(L"DIVIDE BY ZERO"); ?
The code is skipping.
#include "Excpt.h"
#include "Winnt.h"
#include "cmath"
float fResult; // Bennet, pg.136
//int x,y;
float x,y;
// x = 5;
// y = 0;
x = 5.0;
y = 0.0;
_try // __try
{
fResult = x/y;
}
//__except (GetExceptionCode() == EXCEPTION_FLT_DIVIDE_BY_ZERO)
_except (GetExceptionCode() == EXCEPTION_FLT_DIVIDE_BY_ZERO)
{
MessageBox(L"DIVIDE BY ZERO");
}
|
|
|
|
|
You need to turn on floating-point exceptions first...
Try #includeing <float.h> and add this bit of code before you do the divide...
_controlfp(0, MCW_EM);
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
modified on Thursday, August 27, 2009 10:48 AM
|
|
|
|
|
Hi all,
Can any body tell me how to disable restore on title bar click.
Thanks
|
|
|
|
|
I presume you mean restoring a window from a minimized state?
If so, then your main window needs to handle WM_SYSCOMMAND[^] and call the inherited WndProc EXCEPT when the wParam == SC_RESTORE.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Hi,
I need help in creating a waterfall display of my image data stored in a buffer. The image needs to be displayed scrolling down the screen as its being acquired from the camera.
I am using visual studio c++ windows forms.
Can someone please help me to figure out how to achieve this display?
Thanks in advance
|
|
|
|
|
su_marvel wrote: I am using visual studio c++ windows forms.
I have a tough time figuring out your query, but thankfully it doesn't belong here. You can post managed c++ queries here[^]
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Hi,
Following is the code I am trying to do
<#import "C:\\Program Files\\BOSS\\SUPPORT\\RealDWG\\cf2407.dll" rename_namespace("CADFilter")
AcRx::AppRetCode acrxEntryPoint (AcRx::AppMsgCode Msg,
void* AppId)
{
// local variables
int cindex;
CADFilter::NW_IDocument *m_pIDocument;
CLSID clsid;
CoInitialize (NULL);
HRESULT hr = CLSIDFromProgID(LPCOLESTR("NW_Document"), &clsid );
hr = CoCreateInstance( clsid, NULL,CLSCTX_ALL , __uuidof(CADFilter::NW_IDocument) , (void**)&m_pIDocument );
if(SUCCEEDED(hr))
{
AfxMessageBox(_T("Hi"));
}
}>
But I am getting an " HRESULT hr as an "Invalid class string"
|
|
|
|
|
Don't cross-post. Look in the COM forum, where I answered this question.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
is NW_Document a valid ProgID? Have you checked it with, for instance, OleView Tool?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
NW_Document is the name of my co class which i saw in .tlh file.
By the way how to get to know that the ProgID is valid or not and if not then what is ProgID
|
|
|
|
|
From MSDN [^]:
ProgIDs present a human-readable version of the class identifier (CLSID) used to identify COM/ActiveX objects.
deadlyabbas wrote: By the way how to get to know that the ProgID is valid or not and if not then what is ProgID
OleView tool helps. You may also have a look at the registry.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|