Mombu the Microsoft Forum sponsored links

Go Back   Mombu the Microsoft Forum > Microsoft > Samsung i600
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 17th March 12:11
john smith
External User
 
Posts: 1
Default Samsung i600



Hello,
I am doing something very simple on a Samsung i600 smartphone.

I am creating a Progress Control via a Create Window Call

g_hWndProgress = CreateWindow(TEXT("msctls_progress32"), NULL,
WS_VISIBLE|WS_CHILD |
WS_BORDER, 5, 100, iWidth - 10, 20, hwnd, (HMENU)IDC_PROGRESS, ghInst,
NULL);

then issuing

SendMessage(g_hWndProgress, PBM_SETRANGE32, (LPARAM)0, (WPARAM)20);
SendMessage(g_hWndProgress, PBM_SETSTEP, 1, 0L);
SendMessage(g_hWndProgress, PBM_SETPOS, (WPARAM)0, 0L);

the Smart phone it creates the Progress Control no problem but it is always
filled in at 100%
with red. There is no way for me to change it to any other Position. Am i
doing something Drastically wrong ? When using the emulator its works
perfect, only on the real device i am having trouble.

Thanks
Ken Partridge
  Reply With Quote


  sponsored links


2 26th March 14:49
beverly howard [ms-mvp/mobiledev]
External User
 
Posts: 1
Default Samsung i600



gonna risk the flames and suggest that you repost this at

microsoft.public.pocketpc.developer

and

microsoft.public.smartphone

Beverly Howard
  Reply With Quote
3 26th March 14:49
john smith
External User
 
Posts: 1
Default Samsung i600


I tried that already no takers
  Reply With Quote
4 26th March 14:49
t. li
External User
 
Posts: 1
Default Samsung i600


Looks like that the setting range message is not correctly sent. The
arguments are not casted right WPARAM goes before the LPARAM.

T. Li
  Reply With Quote
5 26th March 14:49
john smith
External User
 
Posts: 1
Default Samsung i600


Hi Li,

I tried recasting same problem.
It workd fine on all moy other PocketPC (non smartphone) devices, thats
whats troubling

John
  Reply With Quote
6 26th March 14:50
t. li
External User
 
Posts: 1
Default Samsung i600


I pasted your code into a test program and it works on my i600 SP2003.
g_hWndProgress = CreateWindow(TEXT("msctls_progress32"), NULL,
WS_VISIBLE|WS_CHILD|WS_BORDER, 10, 30, 150, 20, hwnd,
NULL, ghInst, NULL);

SendMessage(g_hWndProgress, PBM_SETRANGE32, 0, 20);
SendMessage(g_hWndProgress, PBM_SETSTEP, 1, 0L);
SendMessage(g_hWndProgress, PBM_SETPOS, 10, 0L);
  Reply With Quote
Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666