View Javadoc

1   /**
2    * 
3    */
4   package org.sirius.server.win32.core;
5   
6   import org.sirius.server.win32.core.types.WinDefExt.MENUBARINFO;
7   import org.sirius.server.win32.core.types.WinDefExt.MENUINFO;
8   import org.sirius.server.win32.core.types.WinDefExt.MENUITEMINFO;
9   import org.sirius.server.win32.core.types.WinDefExt.WINDOWPLACEMENT;
10  
11  import com.sun.jna.Native;
12  import com.sun.jna.platform.win32.User32;
13  import com.sun.jna.win32.W32APIOptions;
14  
15  /**
16   * @author Myk Kolisnyk
17   * 
18   */
19  public interface User32Ext extends User32 {
20  
21      User32Ext INSTANCE = (User32Ext) Native.loadLibrary("user32.dll",
22                                        User32Ext.class,
23                                        W32APIOptions.DEFAULT_OPTIONS);
24  
25      boolean GetClientRect(HWND hWnd, RECT rect);
26  
27      HMENU GetMenu(HWND hWnd);
28  
29      boolean GetMenuBarInfo(HWND hwnd, long idObject, long idItem,
30              MENUBARINFO pmbi);
31  
32      long GetMenuCheckMarkDimensions();
33  
34      int GetMenuDefaultItem(HMENU hMenu, int fByPos, int gmdiFlags);
35  
36      boolean GetMenuInfo(HMENU hmenu, MENUINFO lpcmi);
37  
38      int GetMenuItemCount(HMENU hMenu);
39  
40      int GetMenuItemID(HMENU hMenu, int nPos);
41  
42      boolean GetMenuItemInfo(HMENU hMenu, int uItem, boolean fByPosition,
43              MENUITEMINFO lpmii);
44  
45      boolean GetMenuItemRect(HWND hWnd, HMENU hMenu, int uItem, RECT rect);
46  
47      int GetMenuState(HMENU hMenu, int uId, int uFlags);
48  
49      int GetMenuString(HMENU hMenu, int uIDItem, char[] lpString,
50              int nMaxCount, int uFlag);
51  
52      HWND GetParent(HWND hWnd);
53  
54      HMENU GetSubMenu(HMENU hMenu, int nPos);
55  
56      HMENU GetSystemMenu(HWND hWnd, boolean bRevert);
57  
58      HDC GetWindowDC(HWND hWnd);
59  
60      boolean GetWindowPlacement(HWND hwnd, WINDOWPLACEMENT placement);
61  
62      boolean IsIconic(HWND handle);
63  
64      boolean IsMenu(HMENU handle);
65  
66      boolean IsRectEmpty(RECT rect);
67  
68      boolean IsWindow(HWND handle);
69  
70      boolean IsWindowEnabled(HWND handle);
71  
72      boolean IsWindowUnicode(HWND handle);
73  
74      int SendMessage(HWND hWnd, int msg, WPARAM wParam, LPARAM lParam);
75  
76      boolean SetWindowText(HWND hWnd, char[] lpString);
77  }