Package org.sf.feeling.swt.win32.extension.shell

Examples of org.sf.feeling.swt.win32.extension.shell.Windows


   * @param point
   *            a memory MOUSEHOOKSTRUCT struct point
   * @return An MOUSEHOOKSTRUCT object.
   */
  public static MouseHookStruct valueOf(int point) {
    MOUSEHOOKSTRUCT struct = new MOUSEHOOKSTRUCT();
    Extension.CreateStructByPoint(point, struct);
    return new MouseHookStruct(struct);
  }
View Full Code Here


  public static Image getSysFolderIcon(int folderId, int style) {
    int type = 0;
    if((style & ICON_SMALL)>0)type |= Win32.ICON_SMALL;
    if((style & ICON_LARGE)>0)type |= Win32.ICON_LARGE;
    int pid = Extension.SHGetSpecialFolderLocation(folderId);
    SHFILEINFO shInfo;
    if (Extension.IsUnicode)
      shInfo = new SHFILEINFOW();
    else
      shInfo = new SHFILEINFOA();
    Extension.SHGetFileInfo(pid, 0, shInfo, SHFILEINFO.sizeof,
View Full Code Here

    int pid = Extension.SHGetSpecialFolderLocation(folderId);
    SHFILEINFO shInfo;
    if (Extension.IsUnicode)
      shInfo = new SHFILEINFOW();
    else
      shInfo = new SHFILEINFOA();
    Extension.SHGetFileInfo(pid, 0, shInfo, SHFILEINFO.sizeof,
        Win32.SHGFI_DISPLAYNAME | Win32.SHGFI_SYSICONINDEX
            | Win32.SHGFI_ICON | Win32.SHGFI_PIDL | type);
    return Image.win32_new(null, SWT.ICON, shInfo.hIcon);
  }
View Full Code Here

    if((style & ICON_SMALL)>0)type |= Win32.ICON_SMALL;
    if((style & ICON_LARGE)>0)type |= Win32.ICON_LARGE;
    int pid = Extension.SHGetSpecialFolderLocation(folderId);
    SHFILEINFO shInfo;
    if (Extension.IsUnicode)
      shInfo = new SHFILEINFOW();
    else
      shInfo = new SHFILEINFOA();
    Extension.SHGetFileInfo(pid, 0, shInfo, SHFILEINFO.sizeof,
        Win32.SHGFI_DISPLAYNAME | Win32.SHGFI_SYSICONINDEX
            | Win32.SHGFI_ICON | Win32.SHGFI_PIDL | type);
View Full Code Here

   * @return return 0 if the operation failed.
   */
  public static int removeToRecycle(int hWnd, File file, boolean confirm)
  {
    int result;
    SHFILEOPSTRUCT lpFileOp;
    if (Extension.IsUnicode) lpFileOp = new SHFILEOPSTRUCTW();
    else
      lpFileOp = new SHFILEOPSTRUCTA();
    lpFileOp.wFunc = 3;
    String fileName = file.getAbsolutePath();
View Full Code Here

  {
    int result;
    SHFILEOPSTRUCT lpFileOp;
    if (Extension.IsUnicode) lpFileOp = new SHFILEOPSTRUCTW();
    else
      lpFileOp = new SHFILEOPSTRUCTA();
    lpFileOp.wFunc = 3;
    String fileName = file.getAbsolutePath();
    int hHeap = Extension.GetProcessHeap();
    TCHAR buffer = new TCHAR(0, fileName, true);
    int byteCount = buffer.length() * TCHAR.sizeof;
 
View Full Code Here

   */
  public static int removeToRecycle(int hWnd, File file, boolean confirm)
  {
    int result;
    SHFILEOPSTRUCT lpFileOp;
    if (Extension.IsUnicode) lpFileOp = new SHFILEOPSTRUCTW();
    else
      lpFileOp = new SHFILEOPSTRUCTA();
    lpFileOp.wFunc = 3;
    String fileName = file.getAbsolutePath();
    int hHeap = Extension.GetProcessHeap();
View Full Code Here

   *
   * @return a global SystemInfo instance.
   */
  public static SystemInfo getInstance() {
    if (systemInfo == null) {
      SYSTEMINFO info = Extension.GetSystemInfo();
      systemInfo = new SystemInfo();
      systemInfo.oemId = info.dwOemId;
      systemInfo.pageSize = info.dwPageSize;
      systemInfo.minAppAddress = info.lpMinimumApplicationAddress;
      systemInfo.maxAppAddress = info.lpMaximumApplicationAddress;
View Full Code Here

    {
      windowMsgCallback = new Callback(this, "WindowMsgProc", 4);
      newAddress = windowMsgCallback.getAddress();
      oldAddress = Extension.SetWindowLong(manager.getShell().handle, Win32.GWL_WNDPROC,
          newAddress);
      callback = new WNDCallback(manager.getShell(), oldAddress, newAddress)
      {
        public void dispose()
        {
          disposeCallback();
        }
View Full Code Here

    {
      windowResizeCallback = new Callback(this, "WindowResizeProc", 4);
      newAddress = windowResizeCallback.getAddress();
      oldAddress = Extension2.SetWindowLongPtr(window.getShell().handle,
          Win32.GWL_WNDPROC, newAddress);
      callback = new WNDCallback(window.getShell(), oldAddress, newAddress)
      {
        public void dispose()
        {
          disposeCallback();
        }
View Full Code Here

TOP

Related Classes of org.sf.feeling.swt.win32.extension.shell.Windows

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.