|
From: blotfib on 6 May 2008 10:26 Hi I want to add a Spin to an edit so Ican increment or decrement the numbers in my Edit. I tryed the : but it doenst show me the spin g_hWndEditBref= CreateWindow( TEXT("Edit"), TEXT("0000"), WS_CHILD | WS_VISIBLE | WS_BORDER| ES_AUTOHSCROLL | ES_AUTOVSCROLL | ES_MULTILINE, 100, 50, 80, 36, hWnd, NULL, g_hInst, NULL); g_hWndBrefSpin= CreateWindow(TEXT("UpDownClass"), NULL, WS_VISIBLE | UDS_ALIGNRIGHT | UDS_NOSCROLL, 100, 40, 16, 16, hWnd, NULL, g_hInst, NULL); SendMessage(g_hWndBrefSpin, UDM_SETBUDDY, (WPARAM)g_hWndEditBref, 0); there is a help on ExpandableEdit http://msdn.microsoft.com/en-us/library/aa457780.aspx but the expnadable control (alon or with the Spin, dos'nt show) on WM 2003 SE ??? is it only for smartphone ??? Thanks
From: blotfib on 6 May 2008 10:45 if fact : the g_hWndBrefSpin= CreateWindow(TEXT("UpDownClass"),... returns a NULL pointer so CreateWindow failed. but WHY ?
From: Scott Seligman on 6 May 2008 11:04 =?Utf-8?B?YmxvdGZpYg==?= <blotfib(a)discussions.microsoft.com> wrote: > >Hi >I want to add a Spin to an edit so Ican increment or decrement the numbers To create an Up Down control, call InitCommonControlsEx first, then create a window of the class UPDOWN_CLASS (defined as "msctls_updown"). >there is a help on ExpandableEdit >http://msdn.microsoft.com/en-us/library/aa457780.aspx >but the expnadable control (alon or with the Spin, dos'nt show) on WM 2003 SE >??? is it only for smartphone ??? Yes. It's a control that expands to full screen, designed only for the smartphone platform. -- --------- Scott Seligman <scott at <firstname> and michelle dot net> --------- Anybody remotely interesting is mad, in some way or another. -- The Doctor in Doctor Who:"Remembrance of the Daleks"
From: Chris Tacke, eMVP on 6 May 2008 11:16 This might be helpful: http://msdn.microsoft.com/en-us/library/aa911366.aspx -- Chris Tacke, Embedded MVP OpenNETCF Consulting Giving back to the embedded community http://community.OpenNETCF.com "blotfib" <blotfib(a)discussions.microsoft.com> wrote in message news:5891ECC5-41B0-470C-A7E9-FC057549C289(a)microsoft.com... > if fact : the g_hWndBrefSpin= CreateWindow(TEXT("UpDownClass"),... > > returns a NULL pointer so CreateWindow failed. > but WHY ?
From: blotfib on 6 May 2008 11:27 thanks for your help Arrgg I forgot the InitCommonControlsEx this time again... now I put : // Initialize special control INITCOMMONCONTROLSEX icce; icce.dwSize = sizeof(icce); //icce.dwICC = ICC_LISTVIEW_CLASSES | ICC_TREEVIEW_CLASSES | ICC_BAR_CLASSES | ICC_TAB_CLASSES | ICC_UPDOWN_CLASS | ICC_PROGRESS_CLASS | ICC_DATE_CLASSES; icce.dwICC = ICC_UPDOWN_CLASS; InitCommonControlsEx(&icce); but the g_hWndBrefSpin= CreateWindow(TEXT("msctls_updown"), NULL, WS_CHILD | WS_VISIBLE | UDS_HORZ |UDS_ALIGNRIGHT | UDS_ARROWKEYS | UDS_SETBUDDYINT | UDS_WRAP | UDS_EXPANDABLE, 0, 0, 0, 0, hWnd, (HMENU)nBrefSpinID, g_hInst, NULL); still giving NULL I also tried : CreateWindow(TEXT("UpDownClass"), ... NULL also ??? but g_hWndBrefSpin= CreateWindow(UPDOWN_CLASS, NULL, WS_VISIBLE | UDS_HORZ | UDS_ALIGNRIGHT | UDS_ARROWKEYS | UDS_SETBUDDYINT | UDS_WRAP | UDS_EXPANDABLE, 0, 0, 0, 0, hWnd, (HMENU)nBrefSpinID, g_hInst, 0L); works !!! so here is the name of the class :UPDOWN_CLASS bye I have : Pocket PC 2003 (ARMV4) profile is ther a pb with that ?
|
Pages: 1 Prev: OnGetDispInfo memory managment Next: Create mail with MAPI |