Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2007-05

patch - Add new constant to WinCE RTL

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Patrick Chevalley

Hi,

This patch add the constant SHDB_SHOWCANCEL added by Windows Mobile 5.0 to aygshell WinCE API.
It is to use with SHDoneButton call to replace the OK top bar button by a Cancel button, syntaxe is SHDoneButton(hwnd,SHDB_SHOWCANCEL);

I also replace WS_NONAVDONEBUTTON with its correct value $10000. This one is to hide the top bar X button, usage is Style := Style or WS_NONAVDONEBUTTON;
It was previously set to WS_MINIMIZEBOX as in aygshell.h but this not work because the value is $20000 in wince/wininc/defines.inc.

There is probably an error in defines.inc as it list:
     WS_MAXIMIZEBOX = $10000;
     WS_MINIMIZEBOX = $20000;

but Wince API winuser.h is:
#define WS_MAXIMIZEBOX 0x00020000L
#define WS_MINIMIZEBOX 0x00010000L

I don't do a patch for that because I not have an example for testing.

Patrick

Reply by email

Yury Sidorov
to Patrick Chevalley

From: Patrick Chevalley

Show quoted text 21 lines
This patch add the constant SHDB_SHOWCANCEL added by Windows Mobile 5.0 to aygshell WinCE API. It is to use with SHDoneButton call to replace the OK top bar button by a Cancel button, > syntaxe is SHDoneButton(hwnd,SHDB_SHOWCANCEL); I also replace WS_NONAVDONEBUTTON with its correct value $10000. This one is to hide the top bar X button, usage is Style := Style or WS_NONAVDONEBUTTON; It was previously set to WS_MINIMIZEBOX as in aygshell.h but this not work because the value is $20000 in wince/wininc/defines.inc. There is probably an error in defines.inc as it list: WS_MAXIMIZEBOX = $10000; WS_MINIMIZEBOX = $20000; but Wince API winuser.h is: #define WS_MAXIMIZEBOX 0x00020000L #define WS_MINIMIZEBOX 0x00010000L I don't do a patch for that because I not have an example for testing.

Thanks. In rev. 7306 I added SHDB_SHOWCANCEL and fixed WS_MAXIMIZEBOX and WS_MINIMIZEBOX corresponding to Pocket PC SDK headers.

Yury.

Reply by email