This site is no longer active and is available for archival purposes only. Registration and login is disabled.

SIP positioning


SIP positioning

Postby Andrew Braunstein » Dec 12, 2001 @ 5:27pm

Andrew Braunstein
 


Re: SIP positioning

Postby Dan East » Dec 12, 2001 @ 5:57pm

On the PocketPC the SIP button is not on the TaskBar, but on the command bar at the bottom of the display. That command bar is associated with the app, but is not actually owned by the app's main window. So are you seeing the command bar at the bottom of the screen at all? If so, if the SIP button is not showing, try calling SHFullScreen:<br><br>[fixed]SHFullScreen( hMyMainWnd, SHFS_SHOWSIPBUTTON ); [/fixed]<br><br>If you are not seeing a command bar at the bottom of the display, then you need to call SHCreateMenuBar in your WM_CREATE handler for your main window. Try creating a generic Pocket PC "Hello World" app and see how it is done in the template. It's something like this:<br>[fixed]SHMENUBARINFO mbi;<br><br>memset( &mbi, 0, sizeof( SHMENUBARINFO ) );<br>mbi.cbSize     = sizeof( SHMENUBARINFO );<br>mbi.hwndParent = hwnd;<br>mbi.nToolBarId = IDM_MENU;<br>mbi.hInstRes   = hInst;<br>mbi.nBmpId     = 0;<br>mbi.cBmpImages = 0;<br>if ( !SHCreateMenuBar( &mbi ) ) <br>  return NULL;[/fixed]<br><br>I don't know if you can get by not passing a toolbar resource ID ( IDM_MENU in this case ) or not.<br><br>Dan East
User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Re: SIP positioning

Postby Dan East » Dec 12, 2001 @ 6:01pm

I just re-read your post. I assumed you were trying to update a CE 2.11 app to work properly on a Pocket PC, instead of just trying to get a PSPC binary to run on a Pocket PC as-is. If the latter, then I don't know. I would think the Pocket PC OS would just keep the SIP button up at all times in that case.<br><br>Dan East
User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Re: SIP positioning

Postby Jaybot » Dec 12, 2001 @ 6:17pm

when running a win ce 2.11 app on a pocket pc (with a similar proc, obviously), it works fine and just moves the taskbar to the bottom, and adds a nifty little icon to it that looks like an 'A' and that brings up the input panel.  Even works with a skin app running, like wisbar.  <br><br>In other words, if dan doesn't know what youre talking about, I have no clue.<br><br>wait no, i just got it. :)<br><br>dan, hes saying that when you run a pspc app on the ppc it has the sip in the taskbar (and it moves the taskbar down there)... he's just wondering how you would do that straight up on the ppc.  My question is, why would he just ask how to call the SIP, like put an icon on the taskbar (like in gigabar) that pops up the SIP?Last modification: Jaybot - 12/12/01 at 15:17:24
-------
|\\ //|
-- ^ --
|||
User avatar
Jaybot
pm Insider
 
Posts: 3208
Joined: Mar 22, 2001 @ 10:04pm
Location: Desk.


Re: SIP positioning

Postby Dan East » Dec 12, 2001 @ 6:42pm

Okay. I think I understand now too. He is writing a Pocket PC app, but he doesn't want it to have a command bar. Thus there is no place for a SIP button. So he wants to trick the Pocket PC OS into moving its TaskBar to the bottom like it does with PSPC apps. I don't know how the OS determines that an app is for CE 2.11. I assume it just looks at the app's PE header and gets the OS version the app was built for.<br><br>A suggestion would be to make your app full-screen (using SHFullScreen), and draw your own pseudo-taskbar (I do this with our Pocket PC medical software). It is trivial to draw a clock, or handle mouse clicks on your "start button" (you just send a single message to show it). Then you include your own SIP button, and call SHSipPreference to show and hide the SIP. You the get the rest of that space to fill with info as you please.<br><br>Dan East
User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Re: SIP positioning

Postby Dan East » Dec 12, 2001 @ 6:44pm

Duh. I did the same thing with Pocket Quake. In portrait mode it implements it's own Taskbar, including a clock and start menu. Take a look at the PQ source if you're interested.<br><br>Dan East
User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Re: SIP positioning

Postby Jaybot » Dec 14, 2001 @ 1:32pm

where can one find info about your medical software?
-------
|\\ //|
-- ^ --
|||
User avatar
Jaybot
pm Insider
 
Posts: 3208
Joined: Mar 22, 2001 @ 10:04pm
Location: Desk.


Re: SIP positioning

Postby Dan East » Dec 14, 2001 @ 1:45pm

It's in beta at a local hospital. Physicians use the Windows CE portion to view the patient's medical record while doing rounds.<br><br>Dan East
User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Re: SIP positioning

Postby Jaybot » Dec 14, 2001 @ 1:53pm

oh.  i was hoping it was already released.  that could be a real (and much needed) contender with all of the palm medical software.
-------
|\\ //|
-- ^ --
|||
User avatar
Jaybot
pm Insider
 
Posts: 3208
Joined: Mar 22, 2001 @ 10:04pm
Location: Desk.


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron