|
i dont have visual studio 2005 pro
j
|
|
|
|
|
Hi,
My application has a list control into which i populate some files ,since at a time only five files can be seen(due to the height of the listcontrol) the user will scroll it down using the down arrow but when he does that the elements look distorted ,wat could be the problem.
Thanx in Advance
FarPointer
|
|
|
|
|
Hi,
I need to create a CListCtrl icon style with buttons instead of the icons. Does anyone know how to do this? I have looked for articles on this, but can't seem to find anything.
Any help appreciated,
Royce
|
|
|
|
|
I really do not understand why would you need a button in a CListCtrl. I haven't seen anything like that, however this[^] or this[^] may help you.
Regards,
Rajesh R. Subramanian.
You have an apple and me too. We exchange those and We have an apple each.
You have an idea and me too. We exchange those and We have two ideas each.
|
|
|
|
|
Rajesh,
Thanks for your help. However, both of these articles (and all of the others that I have seen) address custom drawing in a report or list style CListCtrl, but not in an icon style control. I need to the behavior of the icon style, but with buttons instead of the icons. My application needs to allow a co-pilot or flight engineer to push a button with a gloved finger. Each button, when pushed will invoke functionality specific to the button. The bitmap button works well for this purpose as I need to change the button's appearance, i.e., bitmap, text, background color, etc., depending on the aircraft selected. (I have tried to put a screen shot here to show you, but couldn't get the GIF to show up.)
Royce
|
|
|
|
|
Now I want to display a gif picture using CPictureEx, and I encapsulate the class into Acitve control. when the view is changed, I use follow code to redraw the picture :
if (pImg->m_spAdviseSink)
{
pImg->m_spAdviseSink->OnViewChange(1, -1);
}
and the render function is:
m_arrFrames[m_nCurrFrame].m_pPicture->Render(m_hMemDC,
m_arrFrames[m_nCurrFrame].m_frameOffset.cx,
m_arrFrames[m_nCurrFrame].m_frameOffset.cy,
m_arrFrames[m_nCurrFrame].m_frameSize.cx,
m_arrFrames[m_nCurrFrame].m_frameSize.cy,
0, hmHeight, hmWidth, -hmHeight, NULL);
but now if I scroll the scroll bar to half of the picture, essentially the richedit would display half of the picture ,but now it display entire picture.
|
|
|
|
|
Is there a known way of getting disk throughput? I suppose it has something to do with performance counters, but I'm not sure how to use them properly..
Does anyone know a good article, link, or something..? I'd be most gratefull
---
http://sprdsoft.cmar-net.org - We Sprd You Softly
Our site features contents and several images. All of this is very weird.
In the end, war is not about who's right, it's about who's left.
|
|
|
|
|
T1TAN wrote: I suppose it has something to do with performance counters, but I'm not sure how to use them properly...
But do you know which one you are interested in?
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
Hm. Good question indeed. I believe it's this one:
LogicalDisk|PhysicalDisk\Disk Bytes/sec
"Indicates the rate at which bytes are transferred and is the primary measure of disk throughput.
To analyze transfer data based on reads and writes, use Disk Read Bytes/sec and Disk Write Bytes/sec, respectively."
This[^] is all I could find..
---
http://sprdsoft.cmar-net.org - We Sprd You Softly
Our site features contents and several images. All of this is very weird.
In the end, war is not about who's right, it's about who's left.
|
|
|
|
|
T1TAN wrote: LogicalDisk|PhysicalDisk\Disk Bytes/sec
It would look something like:
HQUERY hQuery = NULL;
PDH_STATUS pdhStatus = PdhOpenQuery(NULL, 0, &hQuery);
PDH_COUNTER_PATH_ELEMENTS pdhCpe;
pdhCpe.szMachineName = TEXT("server");
pdhCpe.szObjectName = TEXT("LogicalDisk");
pdhCpe.szInstanceName = TEXT("C:");
pdhCpe.szParentInstance = NULL;
pdhCpe.dwInstanceIndex = -1;
pdhCpe.szCounterName = TEXT("Disk Bytes/sec");
DWORD dwBufferSize = sizeof(szBytesSec);
TCHAR szBytesSec[128];
pdhStatus = PdhMakeCounterPath(&pdhCpe, szBytesSec, &dwBufferSize, 0);
HCOUNTER hBytesSec;
pdhStatus = PdhAddCounter(hQuery, szBytesSec, 0, &hBytesSec);
pdhStatus = PdhCollectQueryData(hQuery);
PDH_FMT_COUNTERVALUE pdhfmtBytesSec;
pdhStatus = PdhGetFormattedCounterValue(hBytesSec, PDH_FMT_LONG, NULL, &pdhfmtBytesSec);
pdhStatus = PdhCloseQuery(hQuery);
"Take only what you need and leave the land as you found it." - Native American Proverb
-- modified at 9:28 Monday 12th December, 2005
|
|
|
|
|
Thanx! Will give it a try and let you know how it worked
Do you think I could use this code with CPerfCounters class located in this[^] article?
Is there a way to get the maximum bytes per sec?? I would like to get the percentage of max disk throughput if possible
thanx again DC
---
http://sprdsoft.cmar-net.org - We Sprd You Softly
Our site features contents and several images. All of this is very weird.
In the end, war is not about who's right, it's about who's left.
|
|
|
|
|
T1TAN wrote: Do you think I could use this code with CPerfCounters class located in this[^] article?
Not sure. How about asking the article's author?
T1TAN wrote: Is there a way to get the maximum bytes per sec??
Sure. Each time the value is obtained, store the highest value in a separate variable.
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
DavidCrow wrote: Not sure. How about asking the article's author?
Em, yeah..that seems like a good idea..
DavidCrow wrote: Sure. Each time the value is obtained, store the highest value in a separate variable.
Oh I didn't mean that highest value, what I meant was: is there a way to get the maximum throughput that could ever happen on a specific drive? Not the highest one I've ever measured. I'm not really sure this is possible. I suppose each drive has its own throughput limit..
---
http://sprdsoft.cmar-net.org - We Sprd You Softly
Our site features contents and several images. All of this is very weird.
In the end, war is not about who's right, it's about who's left.
|
|
|
|
|
Hi,
I'm writing a TAPI App. I listen the line, take the phone, Play a sound, process DTMF (key tones the user presses).
If user selects 0 it is (s)he wants to talk to an operator(human kind! operator).
How to do that?
Any link, article, short description or a single word would be helpfull and appreciated. Thank you very much.
//This is not a signature
while (I'm_alive) {
printf("I Love Programming");
}
|
|
|
|
|
Hi,
I know here's not a good place for a message like this, but I thought it might be fun while your working very hard
http://liw.iki.fi/liw/texts/programming-truths.html[^]
//This is not a signature
while (I'm_alive) {
printf("I Love Programming");
}
-- modified at 15:40 Saturday 10th December, 2005
|
|
|
|
|
|
Half of software based only on probability :P
|
|
|
|
|
|
There's some really hidden irony there which I cannot find.
|
|
|
|
|
*cough*
NONE ARE TRUE
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
Hello,
I think that you would have gotten better reactions when you posted this in the lounge..
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
You're absolutely true!
I thought it would be fun, I never thought people will be angry
They say this is not true or that on!! while I think most of it is just joke
and probably not true(nearly all of it!).
Anyway, this was the last time, I promise.
//This is not a signature
while (I'm_alive) {
printf("I Love Programming");
}
|
|
|
|
|
I think that they got angry at themselves because the wasted precious time looking for a solution for one of their problems. I think that you should ignore these reactions and next time look for a better audiance that is looking for wasting their precious time.
Hamed Mosavi wrote: I thought it would be fun
I thought that it was kinda fun to read. I knew some of it already and it didn't make me rofl or something. I think that the web would be a lesser place without people like you. Keep posting!
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Thank you
Very informative and encouraging.
At least I learned something,. Much better than those 'mad' and 'unwell' smilies(!) from others.
Thank you
//This is not a signature
while (I'm_alive) {
printf("I Love Programming");
}
|
|
|
|
|