Guest mobiless Posted April 16, 2004 Report Posted April 16, 2004 Hi, I am doing an application on smartphone 2002 that will load an image, and do some manipulation later. Right now, I am trying to do a file manager that will allow a user to load an image on screen. I read on something on list view or tree view. Abit clueless on how to code this file utility. I appreciate any help given to give me a start up... cheers :wink: Jonathan
Guest SpaceRain Posted April 17, 2004 Report Posted April 17, 2004 First of all, I haven't actually tried this on Windows CE, just on Windows NT, but this is in the MSDN for Windows CE, so it should work: First you create a window of type "LISTBOX": http://msdn.microsoft.com/library/en-us/wc...reatewindow.asp Then you populate your listbox: http://msdn.microsoft.com/library/en-us/wc...B_ADDSTRING.asp Also check out all the other messages you can send that appear in the window on the left on the last link: LB_DELETESTRING, LB_FINDSTRING, LB_GETCOUNT, etc. Good luck, if you still can't figure it out and need an example, just ask. :)
Guest moo_ski_doo Posted April 17, 2004 Report Posted April 17, 2004 Ye you will have to implement it manually because for some stupid reason MS haven't implemented common dialogs in 2002 (I believe they've been implemented in 2003 tho.) Normally you'd use GetSaveFileName and GetOpenFileName and although these are documented in the 2002 SDK, they won't work. Personally I'd implement it using a tree control but it's up to you really.
Guest mobiless Posted April 18, 2004 Report Posted April 18, 2004 Thanks guys! :D I was doing a search on the net and found this link on creating list view on smartphone using WTL If I could do up a list view using this method or using SpaceRain's method, then the next question is if I can populate this list view with files and folders with particular extensions (in my case, picture files like .jpg, .bmp etc)? For example, maybe I need to use methods such as FindFirstFile first? SpaceRain, I'd surely appreciate if you could provide an example! ;)
Guest Stomski Posted May 21, 2004 Report Posted May 21, 2004 I'm currently working on a CFileDialog replacement for Smartphone 2002. I've got a generic TreeView wrapper already sorted. I should have something early next week. I'll be making it publicly available and it will support browsing by file type etc etc. Or, have you got this sorted already?
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now