Home About Me Follow Me on Twitter @mikefrancis Subscribe Resources
# Sunday, November 01, 2009

I just posted on the Windows Mobile Developers team blog: The Windows Marketplace for Mobile Client and your Setup code. This article reviews some potential ‘gotchas’ if you include custom UI in your setup DLL that is being called by the Marketplace client. The message is, please don’t add custom UI. Why? Because it makes the install experience less uniform and streamlined. If you really, really must add you custom UI, the information in this post should be useful to you.

Enjoy,

Mike

posted on Sunday, November 01, 2009 10:29:50 PM UTC  #    Comments [0] Trackback
# Saturday, September 26, 2009

After a some great feedback from developers writing application for the Windows Marketplace for Mobile, I have updated the companion sample code that goes with the Windows Team blog post Using Custom Icons in Windows Mobile 6.5. You can download it from the blog post or here.

Enjoy!
Mike

posted on Saturday, September 26, 2009 5:04:03 PM UTC  #    Comments [0] Trackback
# Tuesday, August 11, 2009

A new release of the Windows Marketplace for Mobile requirements went live today. Many developers should be happy with change in the PNG Start screen icon requirements. Prior to today, you were required to include three PNG files (one for each possible DPI) in your installation CAB file. Today, this requirement is one (90x90) icon.

The three icon requirement, necessitated a setup DLL to dynamically copy the appropriate PNG according to the device DPI. Now the setup is much easier – only requiring CAB file definitions and no C++ code. 

For more information see the following updated blog post: Using Custom Icons in Windows Mobile 6.5 and FAQ: Start Screen PNG Icon FAQ.

Mike

posted on Tuesday, August 11, 2009 7:06:07 PM UTC  #    Comments [0] Trackback
# Sunday, August 09, 2009

If you are new to Windows Mobile development or are interested in a consolidated list of resources, check out the list I’ve put together here: Resources: Windows Mobile Development.

This list was easy to put together using Delicious linkrolls (mmmm linkrolls…). If you have Windows Mobile links to recommend, please add me to your Delicious network. I use the tag: windowsmobile.

Mike

posted on Sunday, August 09, 2009 6:20:09 PM UTC  #    Comments [0] Trackback
# Thursday, August 06, 2009

image There have been a lot of questions around how to create great looking icons like you see for the Microsoft apps in the Windows Mobile 6.5 Start screen.  These icons aren’t icons at all in the traditional sense. Up until Windows Mobile 6.5, you could only use icon (.ICO) images embedded in the EXE file for your Start menu icon. The new Windows Mobile 6.5 Professional Start screen still uses these icons, but you may notice that they are scaled slightly. You may not notice any difference in the appearance of the icon, if you do, you can use a PNG file for your application icon. If fact, the Windows Marketplace for Mobile requires that you use a PNG for Windows Mobile 6.5 applications.

For details on now to specify a PNG file for your Start Screen icon see my blog post here.

posted on Thursday, August 06, 2009 5:43:31 AM UTC  #    Comments [0] Trackback
# Friday, July 24, 2009

Need to create PNG files for your Windows Mobile 6.5 applications? Check out my blog post on the main Windows Mobile blog here.

Mike

posted on Friday, July 24, 2009 6:14:47 PM UTC  #    Comments [0] Trackback
# Thursday, July 23, 2009

At the risk of sounding like Billy Mays (may he RIP) – I got a huge deal on an 8GB microSDHC card. It’s incredible how much memory has come down in price. Five years ago I thought that $70 for a 64 MB card was a good deal. Can’t wait to put this in my Blackjack II – this will give my 8GB Zune some competition.

Transcend 8GB Micro SDHC Flash Card

Here is the link: http://www.newegg.com/Product/Product.aspx?Item=N82E16820208453

posted on Thursday, July 23, 2009 3:40:13 AM UTC  #    Comments [1] Trackback
# Wednesday, July 22, 2009

In my previous post (Windows Mobile 6.5 Web Browser Control: Enabling Gesture support), I discussed how you can enable the built-in gesture support of the web browser control in Windows Mobile 6.5.  Basically you disable selection support when creating the control, and the gesture support is enabled. But what if you want to select within the control. It seems that selection and gestures are mutually exclusive.

Yes. You can’t select and use gestures at the same time. However you can switch into ‘selection mode’ when needed. The following video shows the how this is used in the Windows Mobile messaging application:

 

In this video, I use gestures (flick) to scroll down the email message to locate a block of text I want to copy.

To get into ‘selection mode’, I press Menu | Make Selection. I then select the block of text, tap and hold to bring up the context menu and press Copy.

 

 

 

 

To add this functionality to your Web Browser control application, we will need access to the controls COM interface. Fortunately the ‘HTML control’ provides access to this via the DTM_BROWSERDISPATCH message. The following code demonstrates how to access the IBrowser3::put_SelectionEnabled method to enable / disable ‘selection mode’:

HRESULT SetSelectionMode(HWND hWndHtml, BOOL bSelect)
{
LPDISPATCH pDisp=NULL;
// Get the dispatch interface
SendMessage(hWndHtml, DTM_BROWSERDISPATCH , 0, (LPARAM) &pDisp);
if (pDisp==NULL)
return -1;
// The put_SelectionEnabled method is included in the IBrowser3 interface
IBrowser3 * pBrowser3;
HRESULT hRes = pDisp->QueryInterface(IID_IBrowser3, (LPVOID*)&pBrowser3);
hRes = pBrowser3->put_SelectionEnabled(bSelect ? VARIANT_TRUE: VARIANT_FALSE );
pBrowser3->Release();
return hRes;
}

So where does the IBrowser3 interface come from? This was supported in an earlier version of the browser, but has since been deprecated. However, the control is still using this interface. The interface definition is located in

C:\Program Files\Microsoft Visual Studio 9.0\SmartDevices\SDK\PocketPC2003\Include\webvw.h

I copied this over to my project directory and renamed it: webwv2.h

You can download the BrowserWithGestures sample code project (VS2008) here.

Note that the information above is not documented by Microsoft and is therefore not supported. (i.e. if you call Microsoft Developer Support you may be turned away since only documented / published APIs are supported.)

del.icio.us Tags: , ,
posted on Wednesday, July 22, 2009 8:24:00 PM UTC  #    Comments [0] Trackback