|
CPallini wrote: Hey: don't tell the secret!
The secret is still there: whether to use a positive or a negative 0 .
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
DavidCrow wrote: The secret is still there: whether to use a positive or a negative 0.
just ask marketing people: positive always!
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]
|
|
|
|
|
CPallini wrote: This way everyone will realize programming is a simple task (and will qualify himself as 'Senior Developer').
Dang! Now you know how I became a senior developer.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Actually was a kind of autobiographical note...
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]
|
|
|
|
|
Hey how do you know its a secret? it seems you knew this secret!
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
Do you know the secret too? Are you a 'Senior Developer' too?
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]
|
|
|
|
|
Oh no you revealed my secrect who knows this secrect except you and 5,804,125 members ?
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
Uhmmm, CIA, FBI,....
BTW: Good Hijacking activity, here!
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]
|
|
|
|
|
You can refresh my name on the group.
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
Done [^].
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]
|
|
|
|
|
MZonaid wrote: How program identify negative number from input while I entering negative number?
Possibly looking up the negative sign you enter before the first digit...
BTW: you really need a good C tutorial.
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]
|
|
|
|
|
one method i know about application block by pooling process table and if it matches then terminateprocess() . but is their any method to close the application before getting launch. if it is their how to get this.
|
|
|
|
|
Im not sure Im undrestood your question or no but do you need to WM_CLOSE?
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
I need to know what the Desktop Window Class Name is. I am using an application called Winspector (similar to spy++, which I don't have) to find the handle to the desktop. Winspector requires a class name in order to do a search. I've searched around MSDN and found this article[^] which states that
The window class name for the desktop window is "#32769".
I punched this into Winspector but it's search came up with nothing. Same goes for "32769". Even typing in "#" on it's own didn't prompt the auto-complete feature. Is this information incorrect, or out of date? What is the correct windows class name?
I'm using windows vista home premium 64bit.
modified on Tuesday, January 13, 2009 9:12 AM
|
|
|
|
|
I'm using Windows Vista Enterprise 64 bit.
Spy shows the desktop class as #32769 (Desktop)
Try giving the complete name including the text within brackets and the space before that.
«_Superman_»
|
|
|
|
|
Sauce! wrote: I am using an application called Winspector (similar to spy++, which I don't have) to find the handle to the desktop.
What about GetDesktopWindow() ?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
No luck with superman's suggestion.
David I'm not sure what you're getting at. Are you suggesting I make my own application to find out this information? I don't think that will work anyway. I was under the impression that that function returned the desktop window, but not the desktop window I'm looking for :P I want to find the window that the wallpaper is rendered to. Currently I can get the handle to the SysListView32 which covers the same client area as the background, however this window sits on top of the desktop wallpaper, as well as the desktop icons.
I think a bit of background info is necessary. I'm following along with this[^] I am attempting to run a screensaver on my desktop with the render target set to the window handle for the desktop in order to emulate a Vista ultimate-only feature. This can be done easily enough, however you cannot access the icons on your desktop when you do this. I know it's got to be possible to render to the window behind the icons, where the wallpaper is rendered, I just don't know HOW.
Surely someone around here can work out a way?
|
|
|
|
|
Sauce! wrote: David I'm not sure what you're getting at.
I was simply suggesting GetDesktopWindow() as a way to get a handle to the desktop window.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
That's what I thought. It's easily doable, but the problem is it gets me nowhere, as that's not the desktop window I'm looking for
Surely someone knows what window the OS draws the actual WALLPAPER to?
|
|
|
|
|
Have you used Spy++ to see the parent/child relationship of the windows in question? It may be different in Vista, but in XP the desktop is the topmost window, and the icons are actually 4 "generations" removed from that.
Desktop
Program Manager
SHELLDLL_DefView
SysListView32
icons I know this does not answer your question, but it may open a door you had previously not considered.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Thanks for the response.
I was just looking around in Spy++ tonight (after finally having found a legit download link) and came across the parent/child windows. Funny you should mention it right after I find it.
Setting the render target to the handle for SHELLDLL_DefView seems to do the trick, as the icons show through, however they flicker between frame updates on the screensaver. For example I can see the screensaver and no icons behind it, until I move my cursor over one of the icons (where it should be). The icon then flickers, and disappears until I move the mouse over it again.
Surely there's a way around this! :P
|
|
|
|
|
Actually the wallpaper is not displayed by the desktop, but by a desktop child that is the list control (syslistview) that shows the icons.
Another child is - for example - the taskbar...
|
|
|
|
|
well that's what I thought, but why then, does it render on top of the icons?
I would have thought that the icons and the wallpaper were rendered to seperate controls. Is there any way to keep the icons rendering on top of the wallpaper?
|
|
|
|
|
Sauce! wrote: does it render on top of the icons?
er... not in that sense...
A list control displays icons, text and can have a background.
The order the rendering depends on the WM_PAINT implementation of the control's window procedure (that's a Win32 common control).
The fact they flicker or not depends also on that.
2 bugs found.
> recompile ...
65534 bugs found.
|
|
|
|
|
Hi
I have been trying to create my own CButton class. The Button is its own project and is compiled in to the main project as a dependency (win32 project, Static Library, Common header file for: MFC).
Everything worked fine (it reacted when it got pressed and I could start and stop timers). But then I tried to show a dialog from inside the class something went wrong.
The code below shows what I'm trying to do. When I double-click on the button a simple dialog should pop-up. But that does not happen, dlg.DoModal() just returns -1.
class CmyButton : public CButton
{
DECLARE_DYNAMIC(CmyButton)
...
class CmyDialog : public CDialog
{
DECLARE_DYNAMIC(CmyDialog)
...
void CmyButton::OnLButtonDblClk(UINT nFlags, CPoint point)
{
CmyDialog dlg;
dlg.DoModal();
CButton::OnLButtonDblClk(nFlags, point);
}
The project compiles without warnings and everything seems to be found, but the dialog just wont pop-up. But I can show a message-window using AfxMessageBox(_T()).
// Johan
|
|
|
|