|
I have an app with an icon on system tray. I want to hide the window (just
let the icon appear). I tried to use dlg->ShowWindow(SW_HIDE)instead of DoModal() but when the icon appears, it's useless (when we move the mouse to it, it disappears). Someone plz give me a solution, thanks
|
|
|
|
|
Can you set visible style on the property of window?
|
|
|
|
|
Do you mean setting the visible property to false ? I did so but there's no effect
|
|
|
|
|
No set to ture.
|
|
|
|
|
|
Thanks so much. It's really helpful ...
|
|
|
|
|
Hi,
I am in the maintainance of the application. In one of the function I have the following code
if (FALSE == IsWindowVisible(hCtrl))
return;
Because of that the control is not getting printed. Is there any API which sets the visibility state to WM_VISIBLE.
Regards
|
|
|
|
|
|
subramanyeswari wrote: Is there any API which sets the visibility state to WM_VISIBLE.
How about ShowWindow() ?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Or you can use of SendMessage with WM_VISIBLE .
|
|
|
|
|
subramanyeswari wrote: WM_VISIBLE
?
Probably you're looking for WS_VISIBLE . From MSDN [^]:
WS_VISIBLE
Creates a window that is initially visible.
This style can be turned on and off by using ShowWindow or SetWindowPos.
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
|
|
|
|
|
Hi all,
I am working on a project in which I am using MSFlexGrid.
It works in my system.
But when I install in other PC, the Flexgrid is not appeared.
What will be the problem??
Thanks in advance.
Regards,
Sunil Kumar
|
|
|
|
|
You need to copy and register the flexgrid activeX on the target PC.
|
|
|
|
|
Thanks edric,
I registered it and now it is working.
I think i need to copy these files while installing only.
Now i am doing it manually.
Regards,
Sunil Kumar
|
|
|
|
|
sunilkumar.d wrote: I think i need to copy these files while installing only.
Yes, sure, you copy and register it only once when you install your product. You can take a look at InnoSetup[^], that's an installer that can handle (AFAIK) those kind of things.
|
|
|
|
|
Thanks a lot edric.
Regards,
Sunil Kumar
|
|
|
|
|
I would like to know how to write a rolling display with editbox?
Please help!
|
|
|
|
|
The short answer is: call SetWindowText for the edit box using a rolling buffer.
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
|
|
|
|
|
Is it possible to make the text disappeared at the end of the display?
How to do this?
Please help!
|
|
|
|
|
A silly example:
TCHAR szText[]= _T("Come in here, Dear boy, have a cigar. You're gonna go far, You're gonna fly high ");
const int DISPLAYSIZE=10;
and then
void RollText()
{
TCHAR szBuff[DISPLAYSIZE+1];
static int iStart = 0;
static int LEN = _tcslen(szText);
szBuff[DISPLAYSIZE] = _T('\0');
int i;
for (i=0; i<DISPLAYSIZE; i++)
{
szBuff[i] = szText[(iStart+i) % LEN];
}
SetDlgItemText(IDC_ROLLEDIT, szBuff);
iStart++;
iStart %= LEN;
}
Each time is called, RollText roll the text a character on the left in the edit box.
BTW code has mere illustrative purposes: you should code it better.
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
|
|
|
|
|
I will try it!
Many thanks!
|
|
|
|
|
CPallini wrote: you should code it better.
mmm, are you sure? :P
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
|
|
|
|
|
Of course (but I'll bet no money)!
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
modified on Wednesday, May 21, 2008 1:39 PM
|
|
|
|
|
What's a rolling display ? a marquee ?
For an edit box, I would generate a string with appropriate spaces and "offset" with a timer control.
|
|
|
|
|
I can make the text keep moving from right to left, but the text will stop at the end. Is it possible to make the text disappeared at the end of the display?
How to do this?
Please help!
|
|
|
|