Changeset 237 for trunk/src


Ignore:
Timestamp:
Dec 9, 2009, 1:20:03 PM (16 years ago)
Author:
lpino
Message:
  • Fixed title bar hilite
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/plugins/org.eclipse.swt/Eclipse SWT/pm/org/eclipse/swt/widgets/Decorations.java

    r212 r237  
    10271027}
    10281028
    1029 ///**
    1030 // * Sets the receiver's menu bar to the argument, which
    1031 // * may be null.
    1032 // *
    1033 // * @param menu the new menu bar
    1034 // *
    1035 // * @exception IllegalArgumentException <ul>
    1036 // *    <li>ERROR_INVALID_ARGUMENT - if the menu has been disposed</li>
    1037 // *    <li>ERROR_INVALID_PARENT - if the menu is not in the same widget tree</li>
    1038 // * </ul>
    1039 // * @exception SWTException <ul>
    1040 // *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
    1041 // *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
    1042 // * </ul>
    1043 // */
     1029/**
     1030 * Sets the receiver's menu bar to the argument, which
     1031 * may be null.
     1032 *
     1033 * @param menu the new menu bar
     1034 *
     1035 * @exception IllegalArgumentException <ul>
     1036 *    <li>ERROR_INVALID_ARGUMENT - if the menu has been disposed</li>
     1037 *    <li>ERROR_INVALID_PARENT - if the menu is not in the same widget tree</li>
     1038 * </ul>
     1039 * @exception SWTException <ul>
     1040 *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
     1041 *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
     1042 * </ul>
     1043 */
    10441044public void setMenuBar (Menu menu) {
    10451045        checkWidget ();
     
    10541054        if (menuBar != null)
    10551055            hMenu = menuBar.handle;
    1056 //        OS.SetMenu (handle, hMenu);
    10571056        OS.WinSendMsg (frameHandle, OS.WM_UPDATEFRAME, OS.FCF_MENU, 0);
    10581057        destroyAcceleratorTable ();
     
    14141413
    14151414MRESULT FRAME_WM_ACTIVATE (int mp1, int mp2) {
     1415        int result = callWindowFrameProc (OS.WM_ACTIVATE, mp1, mp2);
    14161416        if ((OS.SHORT1FROMMP (mp1)) == 0) {
    14171417                /*
     
    15231523}
    15241524MRESULT WM_SETFOCUS (int mp1, int mp2) {
     1525//      System.out.println("Decorations::WM_SETFOCUS -> HANDLE = " + Integer.toHexString(handle));
    15251526    MRESULT result  = super.WM_SETFOCUS (mp1, mp2);
    15261527    boolean gotFocus = OS.SHORT1FROMMP (mp2) > 0;
Note: See TracChangeset for help on using the changeset viewer.