how can display line when using window (ewin)?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

how can display line when using window (ewin)?

1,501 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Mori_64 on Tue Apr 22 21:11:36 MST 2014
Hello

How can i display a line after create  a window ?
Generally how can display 2d lib or what ever that is not belong to active window ?

I need  using dialog box (some button and .... and their notification's) and simultaneously draw line or circle .
is it possible ?

Thanks
any help will be use full
标签 (1)
0 项奖励
回复
4 回复数

1,429 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Mori_64 on Sat May 10 21:07:10 MST 2014
Thanks
CUSKO

It works fine  ;-)
0 项奖励
回复

1,429 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Cusko on Fri Apr 25 03:25:07 MST 2014
You can still do it that way. In WM_PAINT you can say:
case WM_PAINT:
  if (flag==1){
    GUI_DrawLine();
  }
)
End when you need your line you do this:
flag=1;
WM_InvalidateWindow(hWin);

hWin is your windows handle.
Hope this helps.
0 项奖励
回复

1,429 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Mori_64 on Thu Apr 24 22:20:06 MST 2014
Thanks Cusko

But i need to do it whenever the application need !
0 项奖励
回复

1,429 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Cusko on Wed Apr 23 05:16:09 MST 2014
You can do this in more then one way.
I suggest you add GUI_Drawline() in window callback routine under WM_PAINT.
0 项奖励
回复