Click here to get back home

Creating my own file browser

 HomeNewsGroups | Search | About
 microsoft.public.smartphone.developer    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Creating my own file browser Lisa Pearlson 12-14-2006
Get Chitika Premium
Posted by Lisa Pearlson on December 14, 2006, 4:30 pm
Please log in for more thread options
Hi,

Since I've been told that SmartPhone does not come with a file explorer by
default (fexplore.exe), it's nearly always a third party application.

This means I will have to create my own fexplore.exe.

If there is some code out there I can use, it would be great.
Otherwise, I am thinking about using CListCtrl as the basis.
I can find all files and folders in a directory, but how do I go about
drawing the icons of the files?
How do I get a handle to application icons?
Then there are icons of data files whose extensions are associated with some
application.
Do I have to search the registry for this extension and the associated exe,
and fetch that exe's icon myself?

Lisa



Posted by riki on December 15, 2006, 2:33 am
Please log in for more thread options
Lisa Pearlson wrote:
> Since I've been told that SmartPhone does not come with a file explorer by
> default (fexplore.exe), it's nearly always a third party application.
microsoft ships a file explorer as of WM5 AKU2

> I can find all files and folders in a directory, but how do I go about
> drawing the icons of the files?
> How do I get a handle to application icons?
> Then there are icons of data files whose extensions are associated with some
> application.
see SHGetFileInfo()

Riki
--
ThemeChanger for Smartphone : http://homepages.inspire.net.nz/~gambit/
AbstractStart for Smartphone :
http://homepages.inspire.net.nz/~gambit/AbstractStart/

Please let me know if you did not receive this message.

Posted by Lisa Pearlson on December 17, 2006, 8:19 pm
Please log in for more thread options
Thanks Riki for your valuable hints.

The smartphone I am dealing with does come with an fexplore.exe, however, it
behaves differently than on the pocket pc, in that on smart phone it will
not browse to the folder specified on the command line, eg:

fexplore.exe "\MyCustomFolder"

On pocket pc, the above will start fexplore.exe and display contents of
"\MyCustomFolder", however on smartphone it starts fexplore.exe and always
displays default "\My Documents".

Rather than implementing my own browser to solve this problem, I am looking
at alternatives, like using windows messages posted to the hwnd found with
FindWindow, or message hooks, to simulate user changing to the right folder.
The Registry might provide some clues to. Any suggestions?

I am unable to use Spy++ since I am using eVC++ 4, but the device is a WM5
device.
Perhaps somebody can help me knowing which message is sent when user selects
a different folder from the drop down menu (combobox displaying tree
control?).

Lisa



> Lisa Pearlson wrote:
>> Since I've been told that SmartPhone does not come with a file explorer
>> by default (fexplore.exe), it's nearly always a third party application.
> microsoft ships a file explorer as of WM5 AKU2
>
>> I can find all files and folders in a directory, but how do I go about
>> drawing the icons of the files?
>> How do I get a handle to application icons?
>> Then there are icons of data files whose extensions are associated with
>> some application.
> see SHGetFileInfo()
>
> Riki
> --
> ThemeChanger for Smartphone : http://homepages.inspire.net.nz/~gambit/
> AbstractStart for Smartphone :
> http://homepages.inspire.net.nz/~gambit/AbstractStart/
>
> Please let me know if you did not receive this message.



Similar ThreadsPosted
file browser and running programs view July 24, 2005, 7:06 am
creating a file with Smartphone Emulator SDK? August 24, 2005, 11:43 am
creating a file with Smartphone Emulator SDK? August 24, 2005, 11:46 am
creating a file with Smartphone Emulator SDK? August 24, 2005, 11:44 am
Proper method for creating OTA provisioning CAB file? July 5, 2005, 6:37 pm
network browser December 3, 2005, 11:13 am
Browser View: January 31, 2006, 10:48 am
Open MediaPlayer from browser May 30, 2005, 7:06 pm
How to check the type of device/browser? January 17, 2006, 2:54 am
ExecWB in Web Browser Control on Windows Mobile 5.0 April 3, 2006, 7:03 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap