|
I don't understand from your query on which base do you want to draw the line on.
If it's a Win32 SDI application, you can get the device context and then draw the lines on the graph using the MoveTo and LineTo API's.
I am a HUMAN. I have that keyword (??? too much) in my name........
_AnsHUMAN_b>
|
|
|
|
|
|
Are you using MFC or pure win32 API ? If you are using MFC, take a look at my sig for a charting control I wrote for codeproject.
|
|
|
|
|
|
pDC->MoveTo(x,y);
while(oPoint in points collection)
{
pDC->LineTo(oPoint.x,oPoint.y);
}
onwards and upwards...
|
|
|
|
|
ms chart active x control can be alternative
|
|
|
|
|
Hi all,
I hope that i posted my question in the right place
I would like to know, if there is some examples or courses to create a little application using RTP in order to visualise my webcam video throught the browser. (on localhost host or network)
I'm using VS2005 + DirectShow.
Thank you.
"The Ultimate Limit Is Only Your Imagination."
|
|
|
|
|
well.. one option is to develop it as an activex control, and use in browser. You may first make it as a stand alone application to refine the working, then convert it as activex. Google for samples, you will get like this.
|
|
|
|
|
ok ...
Do u mean that i have to create an activex probably a one for capturing frames and then add the activex to the browser or what exactly?$
I'm new to DirectShow and i'aint a wed developper.
could u explain more plz ?
"The Ultimate Limit Is Only Your Imagination."
|
|
|
|
|
yes, exactly. Using Directshow is easy to learn, and you shouldn't be a web developer to develop and test an activex control.
|
|
|
|
|
but how could i add an activex to a web page browser ?
"The Ultimate Limit Is Only Your Imagination."
|
|
|
|
|
|
I saw these lines in an example code. I am not clear about it.
CListVieiw::OnInitialUpdate();
CListCtrl & theCtrl = GetListCtrl();
My questions are
(1) Is GetListCtrl()( on the second line) a member function;Which class does it belong to?
(2) what does the '&' mean at the left hand side?
|
|
|
|
|
cy163@hotmail.com wrote: (1) Is GetListCtrl()( on the second line) a member function;Which class does it belong to?
See here.
cy163@hotmail.com wrote: (2) what does the '&' mean at the left hand side?
See here.
"One man's wage rise is another man's price increase." - Harold Wilson
"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
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
Thank you DavidCrow for your reply.
I wonder what exactly is the role of GetListCtrl(); generate a instance of ListCtrl? or sth else?
|
|
|
|
|
cy163@hotmail.com wrote: I wonder what exactly is the role of GetListCtrl(); generate a instance of ListCtrl? or sth else?
To get a reference to the list control associated with the view.
"One man's wage rise is another man's price increase." - Harold Wilson
"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
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
Thanks again.
However, what if there are more than one list controls associated with the view.
|
|
|
|
|
cy163@hotmail.com wrote: However, what if there are more than one list controls associated with the view.
Then you'd have more than one view.
"One man's wage rise is another man's price increase." - Harold Wilson
"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
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
You mean ONLY one ListCtrl can be associated with one view?
If so, Why there may be more than one ListCtrl in a dialog
Or, I misunderstand the view concept. I think a dialog essentially is a view.
|
|
|
|
|
cy163@hotmail.com wrote: You mean ONLY one ListCtrl can be associated with one view?
Yes, unless the view is a CFormView .
cy163@hotmail.com wrote: If so, Why there may be more than one ListCtrl in a dialog
Because a dialog is not a view.
cy163@hotmail.com wrote: Or, I misunderstand the view concept.
Perhaps. But, have no fear, there's plenty of online documentation/examples to help you out.
"One man's wage rise is another man's price increase." - Harold Wilson
"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
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
If a view is drived from CFormView. How to distinguish between ListCtrls associated with it.
|
|
|
|
|
They each have a unique control ID, and thus a separate instance of CListCtrl .
"One man's wage rise is another man's price increase." - Harold Wilson
"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
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
So, for a view derived from a non CFormView, GetListCtrl is used to get the reference of the ListCtrl associated with it.
for a view derived from a CFormView, how to get the references of ListCtrls associated with it. What command should be used.
|
|
|
|
|
cy163@hotmail.com wrote: So, for a view derived from a non CFormView...
Specifically, a CListView .
cy163@hotmail.com wrote: for a view derived from a CFormView, how to get the references of ListCtrls associated with it.
Like a dialog, each control has a unique ID and its own control variable (e.g., CListCtrl ).
"One man's wage rise is another man's price increase." - Harold Wilson
"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
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
I am using VC 6.0. I would like to create a CFormView based project by using ClassWizard, so that I can see the following line in the CxxxxView class.
Class CxxxxView:CFormView
{
....
....
}
Please tell me how to do this using ClassWizard,
Thanks
|
|
|
|