Package org.eclipse.swt.internal.win32

Examples of org.eclipse.swt.internal.win32.POINT


    int transparentPixel = -1, alpha = -1;
    int /* long */hMask = 0, hBitmap = 0;
    byte[] alphaData = null;
    switch (image.type) {
    case SWT.ICON:
      ICONINFO info = new ICONINFO();
      Extension.GetIconInfo(image.handle, info);
      hBitmap = info.hbmColor;
      hMask = info.hbmMask;
      break;
    case SWT.BITMAP:
View Full Code Here


    }
  }

  boolean getEnabled(int itemId) {
    checkState();
    MENUITEMINFO info = new MENUITEMINFO();
    info.cbSize = MENUITEMINFO.sizeof;
    info.fMask = Win32.MIIM_STATE;
    boolean success = Extension.GetMenuItemInfo(hMenu, itemId, false, info);
    if (!success)
      SWT.error(SWT.ERROR_CANNOT_GET_ENABLED);
View Full Code Here

    return (SystemMenuItem) itemMap.get(new Integer(itemId));
  }

  boolean getSelection(int itemId) {
    checkState();
    MENUITEMINFO info = new MENUITEMINFO();
    info.cbSize = MENUITEMINFO.sizeof;
    info.fMask = Win32.MIIM_STATE;
    boolean success = Extension.GetMenuItemInfo(hMenu, itemId, false, info);
    if (!success)
      SWT.error(SWT.ERROR_CANNOT_GET_SELECTION);
View Full Code Here

    return shell;
  }

  String getText(int itemId) {
    checkState();
    MENUITEMINFO info = new MENUITEMINFO();
    info.cbSize = MENUITEMINFO.sizeof;
    if (Win32.getWin32Version() >= Win32.VERSION(4, 10)) {
      info.fMask = Win32.MIIM_STRING;
    } else {
      info.fMask = Win32.MIIM_TYPE;
View Full Code Here

    hMenu = Extension.GetSystemMenu(shell.handle, false);
  }

  void setEnabled(int itemId, boolean enabled) {
    checkState();
    MENUITEMINFO info = new MENUITEMINFO();
    info.cbSize = MENUITEMINFO.sizeof;
    info.fMask = Win32.MIIM_STATE;
    boolean success = Extension.GetMenuItemInfo(hMenu, itemId, false, info);
    if (!success) {
      return;
View Full Code Here

        bitmap);
  }

  void setSelection(int itemId, boolean selected) {
    checkState();
    MENUITEMINFO info = new MENUITEMINFO();
    info.cbSize = MENUITEMINFO.sizeof;
    info.fMask = Win32.MIIM_STATE;
    boolean success = Extension.GetMenuItemInfo(hMenu, itemId, false, info);
    if (!success)
      SWT.error(SWT.ERROR_CANNOT_SET_SELECTION);
View Full Code Here

    checkState();
    int /* long */hHeap = Extension.GetProcessHeap();
    int /* long */pszText = 0;
    boolean success = false;

    MENUITEMINFO info = new MENUITEMINFO();
    info.cbSize = MENUITEMINFO.sizeof;
    /* Use the character encoding for the default locale */
    TCHAR buffer = new TCHAR(0, text, true);
    int byteCount = buffer.length() * TCHAR.sizeof;
    pszText = Extension.HeapAlloc(hHeap, Extension.HEAP_ZERO_MEMORY,
View Full Code Here

  int WindowResizeProc(int handle, int msg, int wParam, int lParam)
  {
    if (msg == OS.WM_GETMINMAXINFO && window.isThemeInstalled())
    {
      Rectangle bound = window.getShell().getDisplay().getPrimaryMonitor().getBounds();
      MINMAXINFO info = new MINMAXINFO();
      Extension.MoveMemory(info, lParam, MINMAXINFO.sizeof);
      if (info.ptMaxSize_x > 0 && info.ptMaxSize_y > 0)
      {
        Rectangle rect = org.sf.feeling.swt.win32.extension.shell.Windows
            .getWindowRect(org.sf.feeling.swt.win32.extension.shell.Windows
View Full Code Here

        SWT.error(SWT.ERROR_NO_MORE_CALLBACKS);
      int threadId = Extension.GetCurrentThreadId();
      procHandle = Extension.SetWindowsHookEx(Extension.WH_GETMESSAGE,
          oleMsgProcAddress, 0, threadId);
      Display.getDefault().setData(HHOOK, new LONG(procHandle));
      Display.getDefault().setData(HHOOKMSG, new MSG());
    }
  }
View Full Code Here

      return 0;
    if (code < 0) {
      return OS.CallNextHookEx(hHook.value, (int) /* 64 */code, wParam,
          lParam);
    }
    MSG msg = (MSG) Display.getDefault().getData(HHOOKMSG);
    OS.MoveMemory(msg, lParam, MSG.sizeof);
    if (!container.isDisposed()) {
      if (container.getHookInterceptor() != null) {
        Msg message = new Msg(msg);
        if (container.getHookInterceptor().intercept(message, code,
View Full Code Here

TOP

Related Classes of org.eclipse.swt.internal.win32.POINT

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.