|
method007 wrote: do not think every one is in same level!!
Same level? Can't you read? The Sample/Example code you ask for is free for the "reading" on MSDN like I told you three times now. Telling you where you can find what you asked for is not a "flame". If you really want to be flamed just let me know.
"Just about every question you've asked over the last 3-4 days has been "urgent". Perhaps a little planning would be helpful?" Colin Angus Mackay in the C# forum
led mike
|
|
|
|
|
Have you considered the WebBrowser Control (shdocvw.dll)?
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I just want to load a URL inside my application just like visual basic 6 and i do not know how. I am looking for easy way . could u tell me how to use
shdocvw.dll ?Thanks
|
|
|
|
|
method007 wrote: could u tell me how to use
shdocvw.dll ?
Project --> Add To Project --> Components and Controls.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
could u tell me what is the controle path for it ? furthermore , how to load the url using this method?
|
|
|
|
|
method007 wrote: furthermore , how to load the url using this method?
Use either the Navigate() or Navigate2() method.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
but how to know the path of controle and what should i do with navaigate? it seems like this is lunching a rocket to space processs!!!
|
|
|
|
|
method007 wrote: but how to know the path of controle...
Most, but not all, reside in the \Windows\System32 folder. However, there's rarely a need to know such information. Once a control has been registered with the OS, its path is mostly irrelevant.
method007 wrote: ...what should i do with navaigate?
Pass it a URL.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
david i still did not get my answers . What should i do here as u see in the pic and also how to specify the url that i want to load ? could tell me step by step as this is my first attemp to work this method.Thanks
[IMG]http://i5.photobucket.com/albums/y180/method007/component.jpg[/IMG]
|
|
|
|
|
method007 wrote: What should i do here...
Double-click Registered ActiveX Controls.
BTW, <IMG> tags are not supported.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Once you added the component ( as david wrote ), you can use the IHTMLDocument2 interface to access the HTML document, and directly write HTML code ( text ) to the document.
if you want to navigate to an existing document ( on disk or from the web ) you need to Navigate from the IWebBrowser2 interface.
do a little explorating on CodeProject, you will find pretty much what you want.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
I have been confused with the following way of programming. please help me.
In my project I have a frame window and as its part 3 classes. A treeview , a window and a HTML control. Through the window I can select some directories. As soon as the selection is made the tree view must display all the HTML files in that directory. When clicking on the HTML file name in hte tree control it must be displayed in the HTML control. To carry I have used splitter windows. Now the problem comes. I dont know How to organise the classes and where to write the event handler!
As an example how can I pass the button click event in the window to the tree control. Or a click event in the tree control to the HTML control. Though these 3 are seperate classes and their objects are not related each other, it makes me confused! (I would like to write the event handler for each class in that class itself and I dont want to mess up the frame window with lots of code....)
could you please help me? Thanks in advance..
Lloyd.
|
|
|
|
|
Study the MVC pattern (Model-View-Controler)
See this[^] for a starter
"Just about every question you've asked over the last 3-4 days has been "urgent". Perhaps a little planning would be helpful?" Colin Angus Mackay in the C# forum
led mike
|
|
|
|
|
When the document changes, it sends notification to the view(s) via UpdateAllViews() . The view(s), in turn, can call GetDocument() to get the latest data to render.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi there,
Has anybody out there got any experiece using the "SetMetrics" function of a CToolBarCtrl ?.
What i am trying to achieve is to have some spacing between my toolbar buttons.
The current implementation that i have is as follows -
CToolBarCtrl& rToolbarCtrl = m_wndToolBar.GetToolBarCtrl();
TBMETRICS tbMetrics = { 0 };
tbMetrics.cbSize = sizeof( TBMETRICS );
tbMetrics.dwMask = ( TBMF_PAD | TBMF_BARPAD | TBMF_BUTTONSPACING );
rToolbarCtrl.GetMetrics( &tbMetrics );
tbMetrics.cxButtonSpacing += 10;
rToolbarCtrl.SetMetrics( &tbMetrics );
Now with this the buttons still seem to be set at the original spacing.
Could anybody shed some light on my problem.
Regards.
|
|
|
|
|
|
Resources are missing.
Add a resources (static controls) in your resource file. it will solve the problem
SaRath.
"Where I am from, there is no plan B. So, take advantage of today becuase tomorrow is not promised. - 50 Cent"
My Blog | Understanding State Patte
|
|
|
|
|
I try to right click on resource files-->add resource on the solusion explorer but there is no static control...
there is only bitmaps,dialog....
how can I add it?
SnaidiS(Semion)
|
|
|
|
|
take the resource window (dialog editor) Right click on the any of the tool bars. from the menu appearing select "Controls"
there you can see the static controls, buttons, edit box, etc...
SaRath.
"Where I am from, there is no plan B. So, take advantage of today becuase tomorrow is not promised. - 50 Cent"
My Blog | Understanding State Patte
|
|
|
|
|
Did you overlook these instructions:
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
OK-Thank you! I missed it
SnaidiS(Semion)
|
|
|
|
|
Another problem:
When I'm running the project it doesn't write me anything in the Static control(with the degital design) , but I can change the background color on the object
What can be the problem?
here is the code of the intialization of the object:
<br />
m_Digital.SetNumberOfLines(20);<br />
m_Digital.SetXCharsPerLine(18);<br />
m_Digital.SetSize(CMatrixStatic::LARGE);<br />
m_Digital.SetDisplayColors(RGB(0, 255, 0), RGB(0, 255, 50), RGB(0, 103, 30));<br />
m_Digital.AdjustClientXToSize(18);<br />
m_Digital.AdjustClientYToSize(1);<br />
m_Digital.SetText("Hello");<br />
m_Digital.SetColor(RGB(0, 255, 255), RGB(0, 255, 8));<br />
m_Digital.SetAutoPadding(true); <br />
What can be the problem?
SnaidiS
-- modified at 15:18 Tuesday 11th July, 2006
|
|
|
|
|
please?
I need some help.
SnaidiS(Semion)
|
|
|
|
|
How can I get the current or working directory with standart library of c++?
|
|
|
|
|
GetCurrentDirectory()
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|