• Post Reply Bookmark Topic Watch Topic
  • New Topic

Reading Native SysTreeView using SWT

 
Uffe Heerfordt
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Im trying to use the SWT api to read a SysTreeView from a native windows application. Have anyone tried this ?. When I call tree.getItems() my application crashes... getItemsCount() works fine. What am I missing.

//SysTreeView32 Handle.
int handle = 0x250658;

Shell shell = new Shell (display);
Tree tree = new Tree(shell,1);
tree.handle = handle;

//tree.setSize (100, 100);
shell.setSize (200, 200);

System.out.println(tree.getItemCount());

shell.open();

System.out.println( tree.getItems() );
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!