Windows XP Problem with SetWindowLong API in WinCE

Joined
Mar 15, 2007
Messages
3
Reaction score
0
hi,
I am using SetWindowLong API to hide textbox control border. It is working fine in WindowsXP. But when I load application in WINCE5.0 there is some border is coming.

private const int WS_BORDER = 0x00800000;

this.m_textBox.Capture = true;

this.hWin = winAbstract_t.GetCapture();

this.m_textBox.Capture = false;

int style = winAbstract_t.GetWindowLong(hWin,GWL_STYLE);

int exStyle = winAbstract_t.GetWindowLong(hWin,GWL_EXSTYLE);



style &= ~WS_BORDER;

exStyle &= ~WS_EX_CLIENTEDGE;

winAbstract_t.SetWindowLong(this.hWin, GWL_STYLE, style & (~(WS_CAPTION | WS_BORDER)));

winAbstract_t.SetWindowLong(
this.hWin, GWL_EXSTYLE, exStyle & (~(WS_CAPTION | WS_BORDER)));

This is my code. we are using TSE(Touch Screen Equipment) in that only I am loding my application. Can anybody help on this?

Regards,
Ganesh.R
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top