|
Hi,
i try to put some html code with flash content and java script to this control, but this is not shown when i use the function SetDocumentHTML() !!
If i use Navigate the site with the same content is showed exactly!?
Are they any known problems between this control and scripts and flash??
Thanks for any help!!
regards
ternal
|
|
|
|
|
What is the HRESULT value that the function returns?
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Hi,
the return code is S_OK, and then i try with this very simple code, and the result is the same, nothing is shown!
CString str_html = L"<html><head<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">Hello worls!</body></html>";
HRESULT hres;
if(S_OK != (hres = m_cBrowserDetails.SetDocumentHTML(str_html)))
Sleep(10);
Then i try with COM and SAVEARRAY, but is the same result!
regards
termal
|
|
|
|
|
I'm just guess here, but you could try and switch off edit mode using CHtmlEditCtrlBase::SetDesignMode[^]
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
I have a listbox with a set of parameter names retrived from a text file.I need to display the index number for each parameter name which is in the listbox on a messagebox or in a editbox,i.e when I select the item name.It should happen.How can I do that?
|
|
|
|
|
|
In a led-mood, today?
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]
|
|
|
|
|
Cedric Moonen wrote: They hide that information in the documentation[^]
Bastards.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Hi,
im using
CDC* pObject;
Crect ButtonRect;
Buttonrect is the rect of the total button....
pObject->DrawText(_T("hi"), ButtonRect, DT_END_ELLIPSIS);
RectText is the rect of the text inside button...
and im using pObject->DrawFocusRect(Recttext);
but the issue is focusrect is drawn along the button edges instead of the text edges...
Please try to help....
|
|
|
|
|
kumar sanghvi wrote: RectText is the rect of the text inside button...
How did you took text rect?
|
|
|
|
|
RectText is the client rect of the button
CRect rCalc(RectText);
UINT nVAlign = (nAlign & (DT_VCENTER | DT_TOP | DT_BOTTOM));
nAlign &= ~(DT_VCENTER | DT_TOP | DT_BOTTOM);
int nHeight = pDC->DrawText(sText, rCalc, nAlign | DT_CALCRECT);
if (RectText.Height() > nHeight)
{
if (nVAlign & DT_VCENTER)
RectText.DeflateRect(0, (RectText.Height() - nHeight) / 2);
else if (nVAlign & DT_BOTTOM)
RectText.top = RectText.bottom - nHeight;
else // top
RectText.bottom = RectText.top + nHeight;
}
if (RectText.Width() > rCalc.Width())
{
if (nAlign & DT_CENTER)
RectText.DeflateRect((rText.Width() - rCalc.Width()) / 2, 0);
else if (nAlign & DT_RIGHT)
RectText.left = RectText.right - rCalc.Width();
else // left
RectText.right = RectText.left + rCalc.Width();
}
and im using and im using pObject->DrawFocusRect((LPRECT)Recttext);
but it doesn"t draws the focus rect just around the text but it draws a rect which is less than the boundaries of the text....
|
|
|
|
|
kumar sanghvi wrote: pDC->DrawText(sText, rCalc, nAlign | DT_CALCRECT);
The DT_CALCRECT cannot be used with the DT_TABSTOP style. So please check whether your nAlign has DT_TABSTOP flag.
Optionaly you can use the GetTextExtent() function to find the width and height of the text.
|
|
|
|
|
Thanks for ur response...
using GetTextExtentPoint() i got the width and height of the text...now how can i get
the rect using this width and height...
|
|
|
|
|
Hi,
In my application I need to control current the view of the folder opened in windows explorer.
User will start my application....He will also open a folder in the windows explorer. When he clicks a button in my application the view of the folder will change.(View means list,thumbnails,icon)
Please let me know where should i start?
Regards and thanx,
J
|
|
|
|
|
|
I may also need to implement keyboard shortcuts to the currently opened folder in the windows explorer to change views, so it cannot be hosted in my app.
|
|
|
|
|
Well, see, the trouble is that the concept of there being a single current folder open in Explorer (which you say is what you want to manipulate) is invalid. There may be any number of folders open in Explorer windows concurrently.
Try taking a step back and telling us what you're actually trying to accomplish with this - there may be ways other than the obvious, brute force method...
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Hi,
Thanks,
Well, My application will install a keyvboard hook. When user depresses a key the active folders view will change.
Regards,
John.
|
|
|
|
|
hi Guys,
I just shifted from Visual Studio to Eclipse for C,C++ programming.
I downloaded the newest version Galileo and C,C++ is working fine.
However are there plugins for Eclipse that you would recommend?
Like Flowchart designers or Code re factoring tools, you know some stuff that I should be aware of.
Thanks in advance,
Cheers
You have the thought that modern physics just relay on assumptions, that somehow depends on a smile of a cat, which isn’t there.( Albert Einstein)
|
|
|
|
|
Last time I tried to use Eclipse (for C++ development) it was painly slow and (IMHO) deadly counter-intuitive. I know it is just a personal feeling (and I didn't deelve into), but, anyway...Good luck!
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]
|
|
|
|
|
Thanks.
I had some strange experience while I was coding Java on it.
However I hope with the newest version of Eclipse, they where more or less corrected.
You have the thought that modern physics just relay on assumptions, that somehow depends on a smile of a cat, which isn’t there.( Albert Einstein)
|
|
|
|
|
Hi ,
can we create thread in Single Threaded component . Suppose my component is derived from
CComSingleThreadModel now can I create multiple thread in this component .
|
|
|
|
|
Yes, you may spawn as many threads as you like.
However, if you plan to use interfaces to COM servers created in the main thread you need to initialize COM in your other threads by calling ::CoInitialize() , or one of its equivalents, in order to setup COM for that thread and you will also need to marshal interfaces properly into the new thread.
Lim Bio Liong has written a nice article series on the subject starting here[^].
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
Roger Stoltz wrote: Lim Bio Liong has written a nice article series on the subject starting here[^].
I wasn't aware of those articles - they're splendid - thanks for posting the link.
The event handling one's good as well - I'd have loved to have known about that one in the past, if only so that I could point people at it, rather than try and explain stuff myself!
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Stuart Dootson wrote: those articles - they're splendid - thanks for posting the link.
Yep, they are really well written.
You're most welcome Stuart.
Stuart Dootson wrote: if only so that I could point people at it, rather than try and explain stuff myself!
Amen to that!
Otherwise the replies we write may become quite large and tedious....
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|