Prev: Hey, what's the URL to that IEEE floating-point number page?
Next: Is There An AC/Battery API Call
From: Norm on 30 Apr 2010 18:58 "Karl E. Peterson" <karl(a)exmvps.org> wrote in message news:#m8yrdL6KHA.5476(a)TK2MSFTNGP06.phx.gbl... > Norm wrote: >> "Karl E. Peterson" <karl(a)exmvps.org> wrote... >>> Karl E. Peterson wrote: >>>> Norm wrote: >>>>> I have added the following code to my program, but I am not sure it is >>>>> correct, as I don't know exactly how to recreated the taskbar. Is this >>>>> the right way to implement this function? >>>> >>>> Well, yeah, it looks approximately right. What's with the WM_MYHOOK, >>>> and looking at lParam, though? All those messages under that >>>> SelectCase really ought to be coming in at the same level as the >>>> WM_QUERYENDSESSION one. >>>> >>>>> If it is the correct way to implement this, what would happen if I run >>>>> ShellTrayAdd function and the icon is there" >>>> >>>> I don't think anything will happen, in that case. Can't hurt to try >>>> it? >>> >>> I just tried it (using all the same parameters, of course), and the >>> second call to ShellNotifyIcon fails. No harm, no foul. >> >> I will leave it as is and wait for Explorer to have a problem and reset, >> unless someone can think of a way to test this. I am running Windows 7 64 >> bit, but have other operating systems for testing. I just can not think >> of a way to make explorer reset the task bar. > > Just kill the explorer.exe process(es) in TaskMgr. :-) > > -- > .NET: It's About Trust! > http://vfred.mvps.org > > I did that, but how do you restart it?
From: Norm on 30 Apr 2010 19:07 Got it, through another one of my apps that shows and hides the desktop, I have an options of showing the icons on the desktop through a hotkey. I copied a shortcut to Windows Explorer to the desktop and then stopped Explorer. Using the hotkey I was able to start Explorer again and that Icon did show. Thanks a lot Karl, I will not implement this option in all my other apps. Norm
From: Bob Butler on 30 Apr 2010 19:15 "Norm" <NormF4(a)spoof.com> wrote in message news:%23KI1ZnL6KHA.5808(a)TK2MSFTNGP02.phx.gbl... > Got it, through another one of my apps that shows and hides the desktop, I > have an options of showing the icons on the desktop through a hotkey. I > copied a shortcut to Windows Explorer to the desktop and then stopped > Explorer. Using the hotkey I was able to start Explorer again and that > Icon did show. Thanks a lot Karl, I will not implement this option in all > my other apps. Explorer restarts automatically if/when the last instance is killed... or have you configured something else as the shell?
From: Norm on 30 Apr 2010 19:50 "Bob Butler" <noway(a)nospam.ever> wrote in message news:uJPH5sL6KHA.348(a)TK2MSFTNGP02.phx.gbl... > > "Norm" <NormF4(a)spoof.com> wrote in message > news:%23KI1ZnL6KHA.5808(a)TK2MSFTNGP02.phx.gbl... >> Got it, through another one of my apps that shows and hides the desktop, >> I have an options of showing the icons on the desktop through a hotkey. I >> copied a shortcut to Windows Explorer to the desktop and then stopped >> Explorer. Using the hotkey I was able to start Explorer again and that >> Icon did show. Thanks a lot Karl, I will not implement this option in all >> my other apps. > > Explorer restarts automatically if/when the last instance is killed... or > have you configured something else as the shell? > Hi Bob, It does not restart on my install of Windows 7 64 bit, I have to restart it manually. Norm
From: Karl E. Peterson on 30 Apr 2010 21:04 Norm wrote: > "Bob Butler" <noway(a)nospam.ever> wrote... >> Explorer restarts automatically if/when the last instance is killed... or >> have you configured something else as the shell? > > It does not restart on my install of Windows 7 64 bit, I have to restart it > manually. I have seen that happen, although very rarely. The "trick" if you want to call it that, is to kill it (all instances of it) with Task Manager in the Processes tab, then switch over to the Applications tab which offers you a "New Task..." button. :-) -- ..NET: It's About Trust! http://vfred.mvps.org
First
|
Prev
|
Next
|
Last
Pages: 1 2 3 Prev: Hey, what's the URL to that IEEE floating-point number page? Next: Is There An AC/Battery API Call |