Default window size scaling? - Windows Mobile Development and Hacking General

Hey all,
I have just started working on porting a framework im making to Windows Mobile,
And im having some trouble with window sizes.
When i use CreateWindow with a width and height, for this example 200x200. When i compile it in debug, i get a window that is as you would expect, 200x200.
But when i compile the app in release, i get a window 400x400 and all the graphics in the window is pixelated (ie one pixel is now 4 pixels (2x2)). Im using GDI to draw the graphics.
But it makes it 400x400 wether i use GDI or just make a window, so my use of GDI is not the problem.
Is there some option i should know about that sets scaling?
Also, in debug, it leaves the start menu & status bar at the top, and the soft buttons at the bottom. While in release, it moves the start bar & status bar to the bottom with the SIP button between them, and no soft buttons.
Why?
Is it because i dont have a menu in my .rc file? but then why does it not do it in debug, while in release it changes the layout?
Thanks for helping out a noob dev
- Mic

What language are you programming in?
What are you testing on? A real device or emulator?
What screen resolution are you testing on?

Programming in C++
Using Windows Mobile 6 Professional SDK in Visual Studio 2008 PRO
On real device (WM6.1 HTC Touch Diamond) & emulator (WM6 PRO VGA emulator) gets the same results.
Resolution is 480x640.

Just for reference i worked it out.
It was lagging and was making everything double its size. (ie a 100x100 window was 200x200 pixels)
I forgot to set the target machine type in the release configuration.
The giveaway line was
Code:
1>LINK : warning LNK4068: /MACHINE not specified; defaulting to X86
But because i had whole program optimisation on, the line appeared near the top in the middle of some 'Build Started' lines, and i missed it.
So i just had to set the SubSystem (Configuration of the project > Linker > System) to "WindowsCE (/SUBSYSTEM:WINDOWSCE)"

Related

Tweaks2K2 .NET for ARM & XScale v3.9.1

Does anyone have this app. Please.
Tweaks2K2 .NET for ARM & XScale v3.9.1
Thanks guys.
This is what you can do with this nice app.
Windows Mobile 2003SE, VGA & Windows Mobile 5 Compatible!
Hacks in this version:
1-Use Cleartype as System Font
2-Italic System Font
3-Bold System Font Modified in 3.2.0
4-Select a system font from fonts installed in your device
5-Animated Windows
6-Speed up the Display
7-Card battery warning
8-Low WMP background quality
9-Start Menu Animation
10-Admin Password
11-Show Network Folder
12-Battery Warning Settings
13-Date and Time in the top bar (Now you can pick from None, Time, Date and Both)
14-Transparent iPaq (36xx series)
15-Change the long date format in Today's screen
16-Change the wake up power off time to 60 seconds
17-Change the system font size Modified in 2.5.2
18-Narrow the scroll bars Modified in 2.5.2
19-Increase Inbox Font
20-Contrast Control for Toshiba e740 and Dell x50 Modified in 3.1.0
21-Identify PIE as IE 6.0
22-Use Cleartype in PIE
23-Move PIE temp files to any of your storage cards
24-Max TCP windows size
25-Letter Recognizer as Default
26-Block Recognizer as Default
27-Wordlogic (www.wordlogic.net) as Default
28-Show Letter Recognizer in the list of Input Methods (keyboards)
29-Show Block Recognizer in the list of Input Methods (keyboards)
30-Show Transcriber in the list of Input Methods (keyboards)
31-Show CE-Star (www.mobem.com) in the list of Input Methods (keyboards)
32-Show PenPower (www.mobem.com) in the list of Input Methods (keyboards)
33-Change the color of Today lines
34-Change the color of Today font
35-Change the color of the font in the top bar
36-Change the color of bottom bar
37-Change the color of top bar (left)
38-Change the color of top bar (right)
39-Change the Start Menu font color
40-Change the Tap & Hold Dots color
41-Change the identity of NetFront 3.x from www.access.co.jp to MSIE 6.0 (this only works with the registered version of this software) Modified in 3.9.1
42-Change the start time of the working day in the calendar
43-Change the end time of the working day in the calendar
44-Change the free days in the week
45-NanoPad as Default Input Method (http://www.outofnoware.freeservers.com)
46-Enable BlueTooth HeadSet support for HPiPaq 5400
47-Creates a Wireless Ethernet Icon in Settings\Connections (only for WM2k3)
48-Hide Admin Password (Policy) (2k2=<)
49-Hide About Icon
50-Hide Owner Icon
51-Hide Buttons Icon
52-Hide Menus Icon
53-Hide Today Icon
54-Hide Password Icon
55-Hide Connections Icon
56-Hide Beam Icon (only WM2k3)
57-Hide Network Icon
58-TenGO as Default Input Method (http://www.tengo.net)
59-Download up to 8 files simultaneously
60- 6 Suggested words in SIP
61-Caching SSL Pages
62-Reset Soft Reset Counter to 0
63-Alarm Fix for Windows Mobile 2003
64-Wake Up PPC in full Power Mode
65-Change the identity of Netfront 3.x to MS Pocket Internet Explorer Modified in 3.9.1
66-Save the email attachment in the selected storage card.
67-Enable ClearType in Landscape (WM2003SE)
68-Turn Off ActiveX Controls
69-Turn Off Scripting
70-Show Scripts errors
71-Force SSL Off in Inbox
72-Enable/Disable Zero Configuration
73-Change the default keyboard skin in WM2003 Spanish and English ROM (screen shot)
74-Screen rotation for Toshibas e310 and iPaqs h5400 and h5500
75-Double Pixeling deactivation for individual programs in VGA Devices.
76-Allows you to move dlls from \Windows to any Storage Device
77-Allows hx4700 users to select any folder to keep the Dockware pictures.
78-Allows hx4700 users to rotate the screen in 180 degrees. That allows to use Control
Remote software more efficiently.
79-Disables the ATI BitMap Cache, this feature is known for causing error message in hx4700 when owner try to use a program made in .NET.
80-Clean the Recent Program List
81-Allows to change the default Terminal Service Client Port in your Pocket PC to any
desired port.
82-Allows to disable the 'hold'-function of the hardware buttons which usually allows you
to assign a second function/shortcut to a button in Loox 720s. This function causes a significant lag in button hit registration when playing games.
83-Smooth scrolling in Pocket Internet Explorer
84-Allows users to synchronize the device clock with NIST Internet Time Service (ITS).
85-Show AM or PM in the top bar clock
86-Small letters in Pocket Internet Explorer
87-Allows hx4700 owners to disable the TouchPad
88-Allows hx4700 owners to Turn OFF/ON the WiFi/BT LED
89-Disables BT/WiFi LED in HTC Blue Angels
90-Disables Power LED in HTC Blue Angels
91-Increase keyboard light time in HTC Blue Angels
92-Allows hx4700 owners to Turn ON/OFF the Power LED
93-Allows hx4700 owners to set the Power LED to Blink
94-Disables all LEDs in HTC Magician
95-Enables an editor in the Album application of HTC Magician
96-SMS Delivery Notification always ON
97-Unlimited 3gp recording. By default if you want to record a video en 3gp format you are limited to a 95 kb video or a few seconds. This trick will end with this limitations
98-Allows the registry mode from hive based registry to file based registry in Windows Mobile 5 (May not work in all devices) New Full compatibility with Windows Mobile 2003SE, VGA & WM5!
i think you can find it in
here www.tweaks2k2.com
check it out

New idea for Taskmanager

Mobile Shell 2.0 brought me to the idea:
It would be great to see preview of all running aplications by sliding from the top bar to the center of the screen (similar to Mobile Shell 2.0).
And then, by sliding left or right you could select the application you want to maximize or by sliding to the top right you could exit this selected application.
Sorry for my poor english, I hope everyone understands what I mean.
Is it possible to programm such a taskmanager? I have no programming skills.
What will be the advantage to tapping on the cross and then see what programs are running?

[New release 05-sep-2008] Finger SDK based on WTL

This is my addempt to develop a finger-friendly sdk for windows mobile. It's written in C++ and based on WTL.
At this time, there are only two components:
1) Finger Scroll Support
with help from this article
http://www.codeproject.com/KB/list/SmoothListBox.aspx
i developed a WTL template to add support for scroll windows (only vertical, for now) with fingers, without scrollbar. In the attachment there are
- header file with template implementation (fngrscrl.h)
- demo program
the template works in portrait and landscape mode, should work also for VGA devices but i tested it only with ppc emulator.
2) Finger Tab Control
this tab control is inspired by touchflo 3d bottom bar control, it mimics horizontal scroll, cursor repositiong and so on, but should be optimized.
Into the attached zip there's full source code (compile with visual studio 2005 and WTL 8.0) and a demo program that uses either components. If you want to test only program without compile the project, remember to put on ppc all the png images into the same folder of the executable.
This is a video of the demo in action
http://www.youtube.com/watch?v=gT1-_SqcjQo
I hope that my code will be useful for someone.
Give me your feedback to my work.
Thanks
wow this is great.
is it possible to convert it to VB .NET?
thread updated!
this is really really .. really cool.

Ugly font in own-made program

Hi.
While learning how to develop WM apps I came against a weird problem. I create a menubar using SHCreateMenuBar. Nothing special, just loading a menu from resource. What is weird when I run it on my diamond the font is ugly and pixelated, like that:
Tools: eVc++ 4 SP3 + PPC 2003 SDK + WM 5 emulator
Any idea how to fix that?
kosherpig, make your application high resolution aware (by HI_RES_AWARE in resources)
Thanks! It works like a charm!
Complete article @ MSDN about it: http://msdn.microsoft.com/en-us/library/ms838191.aspx
How to enable this thing exactly (in case MS decides to move/delete the article)
To add the HI_RES_AWARE resource item to your program
1. From the Insert menu, select Resource.
2. Click the Custom button.
3. Enter CEUX for the resource type.
4. Set the resource data to 01 00.
5. Click the Properties tab.
6. Rename the item to "HI_RES_AWARE", including quotes. (If the quotes are omitted, HI_RES_AWARE will be incorrectly defined as a numeric value in resource.h, and you will need to go back and delete the line from resource.h.)
7. Deselect the external file checkbox.
Click to expand...
Click to collapse
This removes the problem of bad nasty ugly pixelated fonts. Also it makes your application work in a higher-DPI environment, meaning it uses full potential of VGA, full screen, full resoulution.
Thanks again, std!

Total Commander V 2.51 Virtual 2 Window

Using Total Commander V 2.51 on my HD2 and even though I have the Virtual 2 Window Mode option set, I cannot get 2 windows as I can see on my other phones?
Anyone using TC and having this problem on the HD2? Thanks!
Work fine with me. I suppose you know you have to tap the ">" to see the second window?
johma said:
Work fine with me. I suppose you know you have to tap the ">" to see the second window?
Click to expand...
Click to collapse
On my other phones, I could see two windows in the same display page (1 below the other and thus open two separate directories/sources and not have to tap >. Other phones included MDA, Wing, Omnia i900. Yes, if I tap on the > it will refresh the current display to show previous, but not both on the same page?
Thank for taking the time to response. I do appreciate it.
There is a "two window mode" that arranges the two half windows vertically, but it is not the virtual window mode. Do you mean that?
The virtual two window mode uses the little ">" icon to switch between the two virtual windows. This is my favourite arrangement; it gives more real estate.
These can be set on the same settings panel
p34cdc2 said:
There is a "two window mode" that arranges the two half windows vertically, but it is not the virtual window mode. Do you mean that?
The virtual two window mode uses the little ">" icon to switch between the two virtual windows. This is my favourite arrangement; it gives more real estate.
These can be set on the same settings panel
Click to expand...
Click to collapse
Yes, that is what I have set. However, with my other phones when I set that option I would get 1 window on the top of the screen and another below that on the same page display. Apparently with the HD2 that does not work the same.
p34cdc2 said:
There is a "two window mode" that arranges the two half windows vertically, but it is not the virtual window mode. Do you mean that?
The virtual two window mode uses the little ">" icon to switch between the two virtual windows. This is my favourite arrangement; it gives more real estate.
These can be set on the same settings panel
Click to expand...
Click to collapse
OK, I just had to tap the Two Window Mode> then select Two window mode Vertical Arrangement instead of Virtual 2 Window Mode.
Thanks for your help!
asctony said:
OK, I just had to tap the Two Window Mode> then select Two window mode Vertical Arrangement instead of Virtual 2 Window Mode.
Thanks for your help!
Click to expand...
Click to collapse
I was just about to type that option out - you have to set it up yourself...
I'd love to see vertical side by side panels at the same time in landscape vs > arrow thingy...

Categories

Resources