nanogui: Create buttons in microwin


Previous by date: 1 Aug 2006 11:15:08 +0100 segmentation fault while running applications on imx21 lite kit CSB535FS, kourla ashok kumar reddy
Next by date: 1 Aug 2006 11:15:08 +0100 how to access frame buffer, kourla ashok kumar reddy
Previous in thread:
Next in thread: 1 Aug 2006 11:15:08 +0100 Re: Create buttons in microwin, Greg Haerr

Subject: Create buttons in microwin
From: tan yongzai ####@####.####
Date: 1 Aug 2006 11:15:08 +0100
Message-Id: <20060801101502.74254.qmail@web33109.mail.mud.yahoo.com>

Hi guyz,

  I am using the Win32 API to port the microwin to embedded linux. I am unsuccessful in creating buttons in microwin. Any help is appreciated.
Here's the button coding that work in embedded vc4.0++.

static HWND hOk;
TCHAR* item = TEXT("BUTTON");    
TCHAR* label = TEXT("OK");    

hOk = CreateWindow(item, label, WS_CHILD | BS_PUSHBUTTON | WS_VISIBLE, 0, GetSystemMetrics(SM_CYSCREEN)-26, 120, 26, hWnd, (HMENU)IDOK, 0, 0L);                
ShowWindow(hOk, SW_SHOWNORMAL);

In microwin, I also add
#define IDOK 1

What am I missing here?

Thanks and Regards,
YongZai

 		
---------------------------------
Do you Yahoo!?
 Everyone is raving about the  all-new Yahoo! Mail Beta.

Previous by date: 1 Aug 2006 11:15:08 +0100 segmentation fault while running applications on imx21 lite kit CSB535FS, kourla ashok kumar reddy
Next by date: 1 Aug 2006 11:15:08 +0100 how to access frame buffer, kourla ashok kumar reddy
Previous in thread:
Next in thread: 1 Aug 2006 11:15:08 +0100 Re: Create buttons in microwin, Greg Haerr


Powered by ezmlm-browse 0.20.