View Javadoc

1   /**
2    * 
3    */
4   package org.sirius.server.win32.classes.controls;
5   
6   import java.util.Arrays;
7   import java.util.List;
8   
9   import javax.jws.WebService;
10  
11  import org.sirius.server.win32.classes.Common;
12  import org.sirius.server.win32.constants.IHeaderConsts;
13  
14  import com.sun.jna.Pointer;
15  import com.sun.jna.Structure;
16  import com.sun.jna.platform.win32.WinDef.HBITMAP;
17  import com.sun.jna.platform.win32.WinDef.LPARAM;
18  
19  /**
20   * @author Myk Kolisnyk
21   * 
22   */
23  @WebService
24  public class Header extends Common implements IHeaderConsts {
25  
26      public static class HD_ITEM extends Structure {
27          int     mask;
28          int     cxy;
29          char[]  pszText;
30          HBITMAP hbm;
31          int     cchTextMax;
32          int     fmt;
33          LPARAM  lParam;
34  
35          int     iImage;
36          int     iOrder;
37          int     type;
38          Pointer pvFilter;
39  
40          /*
41           * (non-Javadoc)
42           * 
43           * @see com.sun.jna.Structure#getFieldOrder()
44           */
45          @Override
46          protected List getFieldOrder() {
47              return Arrays.asList(new String[] { "mask", "cxy", "pszText",
48                      "hbm", "cchTextMax", "fmt", "lParam",
49  
50                      "iImage", "iOrder", "type", "pvFilter" });
51          }
52      }
53  
54      /**
55  	 * 
56  	 */
57      public Header() {
58          // TODO Auto-generated constructor stub
59      }
60  
61      public int GetItem(final long hwndCtl, final int index) {
62          // (BOOL)SNDMSG((w),HDM_GETITEM,(WPARAM)(int)(i),(LPARAM)(HD_ITEM*)(phdi))
63          return 0;
64      }
65  
66      public int GetItemCount(final long hwndCtl) {
67          // (int)SNDMSG((w),HDM_GETITEMCOUNT,0,0)
68          return 0;
69      }
70  
71      public int GetItemRect(final long hwndCtl, final int index) {
72          // (BOOL)SNDMSG((w),HDM_GETITEMRECT,(WPARAM)(i),(LPARAM)(r))
73          return 0;
74      }
75      /*
76       * #define Header_GetOrderArray(w,l,a)
77       * (BOOL)SNDMSG((w),HDM_GETORDERARRAY,(WPARAM)(l),(LPARAM)(a)) #define
78       * Header_SetOrderArray(w,l,a)
79       * (BOOL)SNDMSG((w),HDM_SETORDERARRAY,(WPARAM)(l),(LPARAM)(a)) #define
80       * Header_GetImageList(w) (HIMAGELIST)SNDMSG((w),HDM_GETIMAGELIST,0,0)
81       */
82  }