Start Min not showing when running from Today Plugin 
Author Message
 Start Min not showing when running from Today Plugin

Hi All,

I wrote a today plug-in and everytime i run an application by clicking on
the plug-in, it doesn't show the title or the smart min buton on top of the
screen, it keeps showing the start button.
anyone knows why is that?

Thanks
Mustafa



Tue, 06 Dec 2005 11:48:38 GMT  
 Start Min not showing when running from Today Plugin

How do you run your app? And is it possible that the app is not just run but
is just brought to foreground since it was run before?

--
Sincerely,
Alexander


http://www.RSDN.ru - Russian Software Developer Network


Quote:
> Hi All,

> I wrote a today plug-in and everytime i run an application by clicking on
> the plug-in, it doesn't show the title or the smart min buton on top of
the
> screen, it keeps showing the start button.
> anyone knows why is that?

> Thanks
> Mustafa



Tue, 06 Dec 2005 16:04:56 GMT  
 Start Min not showing when running from Today Plugin
1) that's the code i use to start the app from the today plug-in

case WM_LBUTTONUP:
   CreateProcess(TEXT("\\Windows\\testapp.exe"), NULL,
NULL,NULL,FALSE,0,NULL,NULL,NULL,&sProc);
  if(WaitForSingleObject(sProc.hProcess, INFINITE) == WAIT_FAILED)
  {
  }
  else
  {
   CloseHandle(sProc.hProcess);
   CloseHandle(sProc.hThread);
  }

2) No i made sure that the app is not running and checked it via the remote
process viewer to make sure.

My Application creates a window (as usual for all the apps) upon starting
and in the WM_CREATE of my WndProc I CreateDialog, which is the main dialog
of my application.
When i run the application from the start menu or File Explorer the button
is shown, when i run it from the plug-in (as shown above) the smart min
button is not shown.


Quote:

> How do you run your app? And is it possible that the app is not just run
but
> is just brought to foreground since it was run before?

> --
> Sincerely,
> Alexander


> http://www.RSDN.ru - Russian Software Developer Network



> > Hi All,

> > I wrote a today plug-in and everytime i run an application by clicking
on
> > the plug-in, it doesn't show the title or the smart min buton on top of
> the
> > screen, it keeps showing the start button.
> > anyone knows why is that?

> > Thanks
> > Mustafa



Tue, 06 Dec 2005 17:55:29 GMT  
 Start Min not showing when running from Today Plugin
Just tried lots of other applications, iexplore, file explorer, solitare,
everything acts the same way, The application starts and the Top Navigation
bar still showing the Today Screen Title ("Start                    <Time>")
and no X button or app title.


Quote:
> 1) that's the code i use to start the app from the today plug-in

> case WM_LBUTTONUP:
>    CreateProcess(TEXT("\\Windows\\testapp.exe"), NULL,
> NULL,NULL,FALSE,0,NULL,NULL,NULL,&sProc);
>   if(WaitForSingleObject(sProc.hProcess, INFINITE) == WAIT_FAILED)
>   {
>   }
>   else
>   {
>    CloseHandle(sProc.hProcess);
>    CloseHandle(sProc.hThread);
>   }

> 2) No i made sure that the app is not running and checked it via the
remote
> process viewer to make sure.

> My Application creates a window (as usual for all the apps) upon starting
> and in the WM_CREATE of my WndProc I CreateDialog, which is the main
dialog
> of my application.
> When i run the application from the start menu or File Explorer the button
> is shown, when i run it from the plug-in (as shown above) the smart min
> button is not shown.



> > How do you run your app? And is it possible that the app is not just run
> but
> > is just brought to foreground since it was run before?

> > --
> > Sincerely,
> > Alexander


> > http://www.RSDN.ru - Russian Software Developer Network



> > > Hi All,

> > > I wrote a today plug-in and everytime i run an application by clicking
> on
> > > the plug-in, it doesn't show the title or the smart min buton on top
of
> > the
> > > screen, it keeps showing the start button.
> > > anyone knows why is that?

> > > Thanks
> > > Mustafa



Wed, 07 Dec 2005 11:11:16 GMT  
 Start Min not showing when running from Today Plugin
The problem turns out to be in the WaitForSingleObject().  If i added it the
title bar doesn't show up if i remove it the process runs perfectly.  What
might the problem be?

 if (!::CreateProcess(TEXT(\\Windows\\TestApp.exe),
        NULL, NULL, NULL, FALSE, 0, NULL, NULL, NULL, &sProc))
{
 return FALSE;

Quote:
}

 if(WaitForSingleObject(sProc.hProcess, INFINITE) == WAIT_FAILED)
  {
   MessageBox(NULL, TEXT("Error"), TEXT("INFO"), MB_OK | MB_SETFOREGROUND);
  }
  else
  {
   CloseHandle(sProc.hProcess);
   CloseHandle(sProc.hThread);
  }

1) I need to wait on the application till it's done so that i can gather
info from it... so what can a work around be?
2) One more question, if i try to do any kind of processing, like getting
value from the registry while processing
WM_TODAYCUSTOM_QUERYREFRESHCACHE  in the today dll it usually acts very
strange, y is that or i am not suppose to process anything here except the
resize of the window?

thx


Quote:

> How do you run your app? And is it possible that the app is not just run
but
> is just brought to foreground since it was run before?

> --
> Sincerely,
> Alexander


> http://www.RSDN.ru - Russian Software Developer Network



> > Hi All,

> > I wrote a today plug-in and everytime i run an application by clicking
on
> > the plug-in, it doesn't show the title or the smart min buton on top of
> the
> > screen, it keeps showing the start button.
> > anyone knows why is that?

> > Thanks
> > Mustafa



Wed, 07 Dec 2005 21:24:00 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. UserControl does not show on running form and properies do not show

2. Today Screen Plugin App

3. shortcut does not show up in start menu right away

4. shortcut does not show up in start menu right away

5. START a FREE Online Business TODAY

6. start word and run running a macro

7. Starting a CMD and making sure it is not started twice

8. App not starting in start in dir.

9. Netscape plugin object property not found

10. liveconnect netscape plugin does not play

11. STL min and max not defined?

12. Today screen does not appear when in App.

 

 
Powered by phpBB® Forum Software