|
Well, ok, what if I have numerous threads? Let's say at least four? How to know if thread is paused or running? Any interesting approaches?
|
|
|
|
|
How about OpenThread and GetThreadContext.
Not sure what is in a CONTEXT, but I would suspect if it was the same from one call to the next, that the thread was suspended.
|
|
|
|
|
Howdy,
I am writing a client side MFC application. I would like to be able to display a scrolling window that renders simple html. The main tags I need are <font>, <center>, <strong> and maybe <img>.
I don't want to use the MS Internet explorer control. That's like using a locomotive to push a shopping cart. My client doesn't want the dependancies and security issues that come with IE. I don't blame him a bit.
I know I have seen light weight html rendering controls for simple html text rendering, but I can't remember where I saw them.
Anyone have any suggestions?
TIA
Jim H
|
|
|
|
|
Since IE is already available on the machine, why not use it? While other renderers probably exist, can you guarantee that they have been thoroughly tested and are fully HTML compliant? Have you considerd CHtmlView ? It's based on the IE server, but it plugs into an application almost seamlessly.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
I've deployed commerical apps that use CHtmlView. It can work, but it's a hellish nightmare to test all the possible permutations and combinations of operating systems and versions of IE. My client also has legitimate security concerns about using IE.
If you need the full power of IE then using the MS browser object is fine.
I don't need anything like the power of IE. I just need to be able to nicely render some text. IE is massive overkill for this task.
|
|
|
|
|
HTMEngine at http://www.terrainformatica.com/htmengine/
QHTM at http://www.gipsysoft.com/qhtm/
--
Joel Lucsy
|
|
|
|
|
Well it's not exactly an HTML rendering engine, but the following control has support for a bunch of tags. I haven't looked at the source that I can remember, but you may be able to rip out it's core and use it for your own purposes.
http://www.codeproject.com/miscctrl/pptooltip.asp[^]
Chris Richardson
|
|
|
|
|
Hey,
here's a good newbie question for everyone:
I'm currently using a 2d graph DLL that i got from codeproject:
CXGraph
And am running it on a split pane with a control panel the right. when the user clicks on the graph, i want to pull the value for that point on the graph out of the graph dll and access it in my project, but the click message seems to get caught in the graph function.
is there any way i can catch the mouseclick action in the main app?
Many Thanks,
Mike
"Facts are meaningless. You could use facts to prove anything that's even remotely true." --Homer J.
|
|
|
|
|
You could intercept it in your derived class then post it back to the MainWnd
AfxGetMainWnd()->PostMessage(...
My neighbours think I am crazy - but they don't know that I have a trampoline. All they see my head bobbing up and down over the fence every five seconds
|
|
|
|
|
thanks!
that's what i was looking for
"Facts are meaningless. You could use facts to prove anything that's even remotely true." --Homer J.
|
|
|
|
|
Hello, there,
I am currently working on a project. There is a combo box. I'd like to know how I can disable the dropdown arrow of it or hide the dropdown arrow. In my project there is two setting, one is keeping the input history, one is not keeping the input history.
I tried m_Combo.ShowDropDown(false)when not keeping the history, but there is a black line under it and it doesn't look good. Is there a way to solve this problem?
Thanks a lot in advance.
Bin
|
|
|
|
|
One way is to subclass the control, and handle WM_LBUTTONDOWN yourself, to effectively disable it that way, or alternatively, at run-time create an edit control in it's place which is ES_READONLY.
Steve S
|
|
|
|
|
If your wanting to disable it do this
have a combo box and give it a control name like m_example
then on your button or whatever your using
lets say your using a button and the button is called History
you put under OnHistory()
m_example.EnableWindow(FALSE); // disabled combobox or whatever linked to
m_example.EnableWindow(TRUE); // enables combobox or whatever linked to
now if you wanna hide it all together
i would do this under the OnHistory()
m_example.ShowWindow(SW_HIDE); // hides the combobox or whatever linked to
if you want the window back then
m_example.ShowWindow(SW_SHOW);// shows the combobox or whatever linked to
GOOD LUCK,
HOPE THIS HELPS.
Win32newb
"Making windows programs worse than they already are"
|
|
|
|
|
thanks a lot. But I just want to disable the drop down button and make it work as an edit box. I don't want to disable the whole thing.
Thanks.
|
|
|
|
|
what you can do is:
Just iterate the windows of the combo box. Combo box contains the edit box and the button.
For example
char szClassName[256];
CWnd* pWnd=(CWnd *)m_combo.GetWindow(GW_CHILD);
::GetClassName(pWnd->GetSafeHwnd(), szClassName, 256);
while( strcmp( szClassName,_T("Button")) != 0 )
{
pWnd=(CWnd *)m_combo.GetWindow(GW_HWNDNEXT);
}
//Got the button
if( pWnd )
pWnd->ShowWindow( SW_HIDE );
|
|
|
|
|
Thanks alot, very helpful hint!!
|
|
|
|
|
I have seen issues with something that works fine in all Windows OS's except some machines running 2000 or XP. I'm using a WM_COPYDATA to send text between windows. When it fails, messages that should appear do not. It is extremely hard to narrow it down further than that.
Is anyone aware of any issues using this message on the newer OS's?
|
|
|
|
|
Does it fail consistently? Have you used Spy++ on the recipient window to see if it is receiving the message?
Perhaps the author of this article might have some knowledge of it failing.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Well, I've looked into it a bit further. It is actually recieving the message but the pointer to the data seems to be off be quite a bit (haven't counted the offset yet). I can see the start of my struct in the dump but it is preceeded by a bunch of "junk". I really don't know why. I have one long and 2 int's followed by a char[256]. The long, int's and string are all in there but not at the correct starting point.
Any ideas?
|
|
|
|
|
Dave_ wrote:
Any ideas?
Having not ever used that message before, I'm afraid not.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
I noticed someone else mentioned a similar issue in the article you linked to. No answer posted unfortunately.
|
|
|
|
|
It appears that the author has not been good about answering any of them. Bummer.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Hi,
I saw a thread where wm_copydata failed due to the nvidia tray-icon app.
MfG
|
|
|
|
|
Ok, but since Dave_ was the one asking the question, you might want to respond to him.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Help, please!
How to access a member in a base class from within an __asm block?
Suppose, we have:
struct s1
{
int a;
};
struct s2 : s1
{
int b;
};
struct s3
{
s2 c;
};
then:
__asm mov eax, [eax]s3.c.b // just fine
but
__asm mov eax, [eax]s3.c.a // ERROR
|
|
|
|