Go Back   xda-developers > Windows Mobile Development and Hacking > Development and Hacking General


Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 13th November 2006, 02:53 PM
_TB_TB_'s Avatar
_TB_TB_ _TB_TB_ is offline
Senior Member
 
Join Date: Apr 2006
Location: Ruda Śląska
Posts: 270
Default FloatMe - a stupid, but maybe usefull 'tool'

Hello!
After a looooooong and bloody battle between me and eMbedded Visual C++ 4 installer battle, I have written a simple tool: FloatMe. What does it do? Well, it changes the foreground window style (WS_STYLE) to something floating - see screenshots

The windows can be moved and scaled; the [X] CLOSES the application (do NOT try closing the "Programs" window, or your CE shell will reboot)

The resized window can have its original style restored WITHOUT resizing of the window - you can obtain something like above. In order to restore - run FloatMe again.

To download: http://bodz.elsat.net.pl/vis/uploade...tme.zip&op=get
no-close-button version: http://bodz.elsat.net.pl/vis/uploade...ose.zip&op=get
CAB version: http://bodz.elsat.net.pl/vis/uploade...cab.zip&op=get

Coding of it took me about 10 minuts, but the results are funny...

14.11.2006 - Update:

Minimize and maximize icons. They work normally, are not initially drawn, howver. To see thwem on screen - tap and move the stylus off the button without releasing.

PS - set one of your HW buttons to FloatMe
__________________

LEDUp - simple LED control program: http://forum.xda-developers.com/showthread.php?t=283302
FloatMe - a stupid, but maybe usefull 'tool': http://forum.xda-developers.com/showthread.php?t=282913
More configurable HW buttons for i780: http://forum.xda-developers.com/show....php?p=3084757
i780/Omnia unlocking: http://forum.xda-developers.com/show....php?p=3101945
Program Finder: http://forum.xda-developers.com/showthread.php?t=477489

Last edited by _TB_TB_; 2nd January 2007 at 06:58 PM.. Reason: Updated app
Reply With Quote
Sponsored Links

  #2  
Old 13th November 2006, 03:23 PM
CWKJ's Avatar
CWKJ CWKJ is offline
Senior Member
 
Join Date: Jul 2006
Location: Singapore
Posts: 888
Default

Wow. Cool.

How is this compare to Vijay's uncompleted version?

Will try and feedback!

CE Shell reboot = soft reset?

What is the difference between close & no close?

Update Version from _TB_TB_ on page 2
Quote:
Originally Posted by _TB_TB_ View Post
__________________
iPAQ H2200 (fr Jun04)
1.10.07WWE

Dopod900 (29Dec05~2Jul07)
Aku1.0/2.0, 2.50.00WWE/1.15.00/1.30.230WWE (A2DP, Apps in ER), HelmiAKU3.5v1.3

Dopod D810 (bought for my other half fr Jun07, now my son)

O2 XDA Flame (fr Jul07, lousy O2/MWG/Arima WM5, cooked good WM6.5WWE Cotulla2)/SE M600i (fr Oct07)
Nokia HS-12W (fr Oct06~Dec07), SE HBH-DS980 (fr Dec07)

HTC Touch HD (bought for my other half fr Jun09)

Last edited by CWKJ; 30th December 2006 at 04:26 PM..
Reply With Quote

  #3  
Old 13th November 2006, 03:38 PM
vijay555's Avatar
vijay555 vijay555 is offline
Moderator
 
Join Date: Jun 2005
Location: Witch Space
Posts: 5,767
Default

Probably a similar idea, and curiously, same name I used on my app when I was coding it (the GSFinder bar in the top left)



VJSihaya is on pause because I want to integrate some other usability features - changing window styles to floating is not difficult, but turning that into something like an OS shell/desktop replacement requires lots of other features I did some work this weekend that will hopefully move things along again finally though.

V
__________________
releases: www.vijay555.comtwitterdonatefrappr

Last edited by vijay555; 13th November 2006 at 03:42 PM..
Reply With Quote

  #4  
Old 13th November 2006, 04:19 PM
_TB_TB_'s Avatar
_TB_TB_ _TB_TB_ is offline
Senior Member
 
Join Date: Apr 2006
Location: Ruda Śląska
Posts: 270
Default

http://www.pdaclub.pl/forum/viewtopi...asc&highlight= - the polish - language topic about reverting WM to WinCE 'usercontrol' user shown an app that did enum all the windows and set their attrib to those that my app set. Since he did not publish it anywhere (nether EXE, nor source code) I wanted to make my own version and release it to all

usercontrol is working (at least he claims so my app kicked his butt to get to work ) on app called betterWM - it is supposed to restore the 'classic' CE taskbar, and some more features (windows minimizing/maximizing, etc).

The app was created for two purposes - eVC++ test and as a small and hopefully usefull tool

Source code is stunningly long:

Code:
#include "stdafx.h" 

int WINAPI WinMain(   HINSTANCE hInstance, 
               HINSTANCE hPrevInstance, 
               LPTSTR    lpCmdLine, 
               int       nCmdShow) 
{ 
   HWND wnd = GetForegroundWindow(); 
   if(wnd != FindWindow(NULL, _T("Desktop"))){ 
      if(((WS_VISIBLE & GetWindowLong(wnd, GWL_STYLE)) != GetWindowLong(wnd, GWL_STYLE))){ 
         SetWindowPos(wnd, HWND_TOP, 0, 26, 10, 10, SWP_NOOWNERZORDER|SWP_NOSIZE); 
         SetWindowLong(GetForegroundWindow(), GWL_STYLE, WS_VISIBLE); 
      } 
      else{ 
          SetWindowLong(GetForegroundWindow(), GWL_STYLE, WS_CAPTION|WS_SYSMENU|WS_SIZEBOX); 
      } 
   } 
   return 0; 
}
And the reset I'm talking about is a regular soft reset (the same effect when you kill Programs window with TaskMan)
__________________

LEDUp - simple LED control program: http://forum.xda-developers.com/showthread.php?t=283302
FloatMe - a stupid, but maybe usefull 'tool': http://forum.xda-developers.com/showthread.php?t=282913
More configurable HW buttons for i780: http://forum.xda-developers.com/show....php?p=3084757
i780/Omnia unlocking: http://forum.xda-developers.com/show....php?p=3101945
Program Finder: http://forum.xda-developers.com/showthread.php?t=477489
Reply With Quote

  #5  
Old 13th November 2006, 04:35 PM
CWKJ's Avatar
CWKJ CWKJ is offline
Senior Member
 
Join Date: Jul 2006
Location: Singapore
Posts: 888
Default

Before I try, one more questions, do I need to exit from Wisbar Advance 2, NEW MENU from one of the forumer and other today plugins?
__________________
iPAQ H2200 (fr Jun04)
1.10.07WWE

Dopod900 (29Dec05~2Jul07)
Aku1.0/2.0, 2.50.00WWE/1.15.00/1.30.230WWE (A2DP, Apps in ER), HelmiAKU3.5v1.3

Dopod D810 (bought for my other half fr Jun07, now my son)

O2 XDA Flame (fr Jul07, lousy O2/MWG/Arima WM5, cooked good WM6.5WWE Cotulla2)/SE M600i (fr Oct07)
Nokia HS-12W (fr Oct06~Dec07), SE HBH-DS980 (fr Dec07)

HTC Touch HD (bought for my other half fr Jun09)
Reply With Quote

  #6  
Old 13th November 2006, 05:00 PM
vijay555's Avatar
vijay555 vijay555 is offline
Moderator
 
Join Date: Jun 2005
Location: Witch Space
Posts: 5,767
Default

_TB_TB_: what's the progress on reverting WinMobile to WinCE on the Polish thread? I'm afraid my Polish isn't very good!

There have been successful efforts to get better versions of WinCE running on some old Palm-size PCs, but unfortunately I've never seen the source code, and replicating the efforts without source would be almost futile... it was a very big project. It's a shame it died.

However, this required using a generic WinCE install, which means that for us, most of the driver incompatiblities etc would leave it even more pointless. Better to work on linux then WinCE for that work.

VJSihaya (if I ever get time to spend on it) is likely just to be a shell, but there are various shell level/hooking challenges to implement before it can be usable as a full shell replacement. However, removing the PocketPC shell would be the best way, it will save resources and keep things much smoother, but you then have to replicate memory and notification callbacks and quite a bit of other stuff. I don't think it's really worth doing that, so that leaves you with running a shell on top of the default PocketPC shell... bad for memory, but best for functionality.

Also - I found when writing VJOkButt that closing the control panel might also cause a system crash. [That might be a useful tool for anyone seeking to exploit Windows Mobile using shell code btw]

V
__________________
releases: www.vijay555.comtwitterdonatefrappr
Reply With Quote

  #7  
Old 13th November 2006, 05:18 PM
hanmin's Avatar
hanmin hanmin is offline
Moderator
 
Join Date: Jan 2006
Location: Devon, UK
Posts: 1,952
Default

nniiiiccceeee ... but I find my 320x240 screen a bit too small for floating windows. I like the idea of Alt-Tab for switching apps, but I ran out of buttons to do so. Will use this when I get a 640x480 version
__________________

* NEW *[Released]-[Blender-Encryption Program]* NEW *

Interactive and easy to follow step-by-step guide for all newbies questions
MDA Vario (HTC Wizard) - Model: WIZA200, CPU: OMAP850, G4
IPL: 2.21.0001, SPL: 2.21.0001, Radio: 02.19.11. WM5 (T-Mobile official AKU)
.[GraphicSlicer] - [Clock skin] - Can you help me on my embedded Virtual C+ problems?
Reply With Quote

  #8  
Old 13th November 2006, 05:30 PM
_TB_TB_'s Avatar
_TB_TB_ _TB_TB_ is offline
Senior Member
 
Join Date: Apr 2006
Location: Ruda Śląska
Posts: 270
Default

Quote:
Originally Posted by vijay555 View Post
_TB_TB_: what's the progress on reverting WinMobile to WinCE on the Polish thread? I'm afraid my Polish isn't very good!
Yay, really?

Progress? Nothing new, actually (the newest thing is flame war against me and my program versus never released usercontrol's program btw - try enumerating all windows and setting their attribs to floating - interesting results...). Only some 'news', that we need to launch a regular WinCE shell (or rather front-end, since both WinCE and WM use the same CE kernel). The WM dll libs contain a lot of WinCE stuff front - end. Now usercontrol is writing a taskbar-app, that would enable minimizing/maximizing/restoring windows. The taskbar itself would be a reconstruction of Handheld PC WinCE taskbar functionality.
__________________

LEDUp - simple LED control program: http://forum.xda-developers.com/showthread.php?t=283302
FloatMe - a stupid, but maybe usefull 'tool': http://forum.xda-developers.com/showthread.php?t=282913
More configurable HW buttons for i780: http://forum.xda-developers.com/show....php?p=3084757
i780/Omnia unlocking: http://forum.xda-developers.com/show....php?p=3101945
Program Finder: http://forum.xda-developers.com/showthread.php?t=477489
Reply With Quote

  #9  
Old 14th November 2006, 02:04 AM
CWKJ's Avatar
CWKJ CWKJ is offline
Senior Member
 
Join Date: Jul 2006
Location: Singapore
Posts: 888
Default

Can floatme (close) & floatme (no close) be combined like Wisbar Advance 2?

That is, short click on the "X" closes th apps and long click on the "X" just minimises it.

That will be really great.
__________________
iPAQ H2200 (fr Jun04)
1.10.07WWE

Dopod900 (29Dec05~2Jul07)
Aku1.0/2.0, 2.50.00WWE/1.15.00/1.30.230WWE (A2DP, Apps in ER), HelmiAKU3.5v1.3

Dopod D810 (bought for my other half fr Jun07, now my son)

O2 XDA Flame (fr Jul07, lousy O2/MWG/Arima WM5, cooked good WM6.5WWE Cotulla2)/SE M600i (fr Oct07)
Nokia HS-12W (fr Oct06~Dec07), SE HBH-DS980 (fr Dec07)

HTC Touch HD (bought for my other half fr Jun09)
Reply With Quote

  #10  
Old 14th November 2006, 02:42 AM
da_mayhem's Avatar
da_mayhem da_mayhem is online now
Senior Member
 
Join Date: Mar 2006
Location: Manila
Posts: 452
Default

Cool!! this is great..i wanna play SkyForce 1 and Sky Force Reloaded at the same time! lol
__________________
Quietly Brilliant
Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:26 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.