|
Why dont you just use IE's DOM ? It can read/write all supported formats. Granted, text manipulation might be a bit trickier, but possible.
Finally moved to Brazil
|
|
|
|
|
|
Good luck. I think you'll have to parse a little of the HTML and figure out the encoding from it by looking at, say the meta charset tag. I doubt you'll find anything aside from a full-blown HTML parser.
That being said, wxWindows[^] does have an HTML view, and they render the HTML themselves. Which means the code you are after is probably in there somewhere.
If your nose runs and your feet smell, then you're built upside down.
|
|
|
|
|
|
|
Hi,
I get the error " Cannot add new member" whenever i try to add a button on control.
what should I do to get rid of it?
Deepak Samuel
|
|
|
|
|
Recheck source code. Maybe you've already added a member variable that corresponds to that particular control and its ID.
Kuphryn
|
|
|
|
|
I had created a "CHAT APPLICATION". Can i change the title name
Client Chat (If no user is logged on and after logged off) to username 's Chat. If username is say X X's Chat
|
|
|
|
|
You need to call SetWindowText from without your app's main window, giving your demanded string as parameter ... in your case the username. This changes the title directly after being called.
We are men. We are different. We have only one word for soap. We do not own candles. We have never seen anything of any value in a craft shop. We do not own magazines full of photographs of celebrities with their clothes on. - Steve
|
|
|
|
|
What MFC architecture is it? Is it SDI?
One solution is UpdateFrameTitleForDocument().
Kuphryn
|
|
|
|
|
kuphryn wrote:
What MFC architecture is it? Is it SDI?
Hi Kuphryn,
Thanks u for ur information. It is SDI.
|
|
|
|
|
Just write your own messagebox.
There are even some articles in codeproject which do the things you want.
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
Hi,
I'm writing my first full VC++ application and am having problems forcing a redraw. I've added 2 Dialogbars to my app and want to be able to hide and unhide them. I'm doing this via ShowWindow(SW_HIDE) but the dialogbars only update when I resize the whole app window.
I know a little about Invalidate() and InvalidateRect() but I belive they're only for the Client area. RedrawWindow() with the RDW_FRAME|RDWERASENOW flags seems to offer a solution but I can't get this to work either.
Any help for a newbie?
Thanks,
Simon
Multimedia programmer, trying to learn a grown-up language!
|
|
|
|
|
Did you try calling ShowControlBar instead of ShowWindow?
We are men. We are different. We have only one word for soap. We do not own candles. We have never seen anything of any value in a craft shop. We do not own magazines full of photographs of celebrities with their clothes on. - Steve
|
|
|
|
|
Thanks so much Steve - if only I'd posted this question 3 hours ago!
Multimedia programmer, trying to learn a grown-up language!
|
|
|
|
|
How to change the color and title of AfxmessageBox?
Deepak Samuel
|
|
|
|
|
Afaik you can change neither the color nor the title of a message box called by AfxMessageBox(...). You should use CWnd's MessageBox(...) instead, where the title is one of the arguments. But changing the color doesn't work, I'd say you need to write your own message window to do that.
We are men. We are different. We have only one word for soap. We do not own candles. We have never seen anything of any value in a craft shop. We do not own magazines full of photographs of celebrities with their clothes on. - Steve
|
|
|
|
|
AfxMessageBox looks for a string resource with an id of IDS_AFX_IDS_APP_TITLE and uses that for the title if it can be found, otherwise it uses the executable name otherwise. You can't change the colour - that's determined by the user's preferences.
|
|
|
|
|
Sorry, cut & paste error. The resource id should be AFX_IDS_APP_TITLE
|
|
|
|
|
I have a situation where I need to read values from the registry without knowing in advance what values might be there. Can anyone suggest example code to read every value under a particular key ?
Many thanks.
|
|
|
|
|
Hi,
Check out my Registry class.
You can find it on www.xfcpro.com under the "Free Stuff" section, the funtion you want is EnumerateValues().
Feel free to steal the function, use it as a basis for your own or whatever.
regards,
Jonathan
|
|
|
|
|
Not sure what the correct etiquette is here but thought I would post to say thanks, I appreciate the leg up.
|
|
|
|
|
no problem
|
|
|
|
|
|
How to call virtual method at CWnd derived class,
- with mutual inheritance?
that is:
I create commin class with virtual method,
make it parent of some CDialog derived class,
than when a Want to call I assign pointer to CDialog to
that common class, and call virtual method -
and
access violation ERROR !!
why so happens?
where I did error ?
code is
<br />
<br />
class CCustomUpdaterTrait<br />
{<br />
public:<br />
virtual void CustomUpdate()
{};<br />
};<br />
<br />
class CDialogDerived: public CDilogBitmap,public CCustomUpdaterTrait<br />
{<br />
<br />
<br />
};<br />
<br />
class CCustomUpdaterCaller: public CCustomUpdaterTrait<br />
{<br />
<br />
f(CWnd* pWnd)<br />
{<br />
<br />
CCustomUpdaterTrait pTrait = (CWnd*) pWnd;<br />
<br />
<br />
pTrait->CustomUpdate();
<br />
};<br />
};<br />
<br />
thanks
|
|
|
|