|
Hi,
I have an simple MFC single document application(e.g TestApp). When application stop working for little time it shows in task bar icon not responding(i.e TestApp(NotResponding)). If I go in TaskManeger then I can find that status of my application is not responding.
Then after some little time my application again runs normally but task bar icon still shows not responding(i.e TestApp(NotResponding)) though it was supposed to show only application name (i.e TestApp).I can verify that application is running normally by seeing the status in TaskManeger.The name in TaskBar Icon remains until I exit from application.
In short I want the the application name only in task bar icon when application returns to normal state. Can anybody help me out?
Thanks:-
Mike
|
|
|
|
|
Your app is doing some extreme processing? Maybe you need to pump windows messages periodically
so the system knows your app is alive
|
|
|
|
|
Can you please elaborate which windows message need to pump?
|
|
|
|
|
Assuming you're not stuck in a thread deadlock or endless loop, you can do something like this
periodically (PumpMessage() is in CWinThread class):
MSG msg;
while (::PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE))
{
if (!PumpMessage())
{
::PostQuitMessage(0);
break;
}
}
Is your app really working that hard?
|
|
|
|
|
Hi all,
How can i give multi line support for CStatic control?
Please help me.
Dream bigger... Do bigger...Expect smaller
aji
|
|
|
|
|
see me wrote: How can i give multi line support for CStatic control?
Doesn't putting a "\n" in the string being displayed do the same.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
No...
I want to do it through my code.
If the Text size is greater than the static control size, i need to split the text in to two line.
Hope you understand my requirement.
Dream bigger... Do bigger...Expect smaller
aji
|
|
|
|
|
see me wrote: No...
I want to do it through my code.
Actually adding \n is the correct method. If it's not working, then you're not doing it correctly.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
It depends on the style of your static control. SS_SIMPLE will will display the text on a single line with no wrapping. SS_LEFT, SS_CENTER, and SS_RIGHT will automatically break the string and wrap the text to the next line.
You may be right I may be crazy -- Billy Joel --
Within you lies the power for good, use it!!!
|
|
|
|
|
Is it possible to hide the application from the tastlist? I have not find any code for it?
|
|
|
|
|
Larsson wrote: hide the application from the tasklist
See here [^]. May be this would give you an idea on how to do this.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
No that program dont work.
|
|
|
|
|
I have (what I believe to me) a rather novel way to do it. I will let you know if it works when I re-release InstaLock again...
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|
|
|
|
this is the code i am using
CWnd pParent;
pParent.ShowWindow(SW_HIDE);
i have designed a custom title bar and placed a bitmap as a minimize icon. but when clicked nothing will happen.
|
|
|
|
|
storyera_storyera wrote: pParent.ShowWindow(SW_HIDE);
This hides the window.
You can use
pParent.ShowWindow(SW_MINIMIZE);
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Is that the actual code?
If so, you're creating a local window class object, and hiding it. You're not hiding the parent window at all, since that object isn't the parent window
|
|
|
|
|
Hi
Is there any method to set an image for edit control ???
Sunil
|
|
|
|
|
Override OnEraseBkgnd handler of CEdit and load/draw your bitmap there(BlgBlt etc)
redindian
|
|
|
|
|
heh thanks,,, will try it out
Sunil
|
|
|
|
|
|
heh thanks,,, will try it out
Sunil
|
|
|
|
|
Dear All,
When using pointers , I am getting error like "Access Violation".
What it is ? Why this is coming ?
I know this seems to be a silly question. I dont know any other way.
Help me ...
thanks.
|
|
|
|
|
It is because you access memory that you shouldn't. You probably read or write at an invalid address (0x0000000 or an unitialized pointer). Use your debugger to see where it happens.
|
|
|
|