Changeset 11773
- Timestamp:
- Oct 8, 1999, 2:10:27 PM (26 years ago)
- Location:
- tags/trunk/src/user32
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified tags/trunk/src/user32/button.cpp ¶
r11582 r11773 1 /* $Id: button.cpp,v 1. 3 1999-09-20 19:17:57 sandervlExp $ */1 /* $Id: button.cpp,v 1.4 1999-10-08 12:10:26 cbratschi Exp $ */ 2 2 /* File: button.cpp -- Button type widgets 3 3 * … … 129 129 { 130 130 BITMAP bmp; 131 132 hbitmapCheckBoxes = NativeLoadBitmap(0,MAKEINTRESOURCEA(OBM_CHECKBOXES)); 131 HINSTANCE hinst; 132 133 //CB: Open32 hack to load our own bitmap 134 hinst = LoadLibraryA("USER32.DLL"); 135 hbitmapCheckBoxes = NativeLoadBitmap(hinst,MAKEINTRESOURCEA(OBM_CHECKBOXES)); 136 FreeLibrary(hinst); 133 137 if (GetObjectA(hbitmapCheckBoxes,sizeof(bmp),&bmp)) 134 138 { … … 393 397 GetClientRect(hwnd,&rect); 394 398 point = MAKELPARAM(rect.right/2,rect.bottom/2); 395 SendMessageA(hwnd,WM_LBUTTONDOWN, 0,point);399 SendMessageA(hwnd,WM_LBUTTONDOWN,MK_LBUTTON,point); 396 400 Sleep(100); 397 401 SendMessageA(hwnd,WM_LBUTTONUP,0,point); … … 503 507 * ButtonWndProc 504 508 */ 509 static 505 510 LRESULT WINAPI ButtonWndProc(HWND hwnd,UINT uMsg,WPARAM wParam,LPARAM lParam) 506 511 { … … 612 617 */ 613 618 BUTTON_DrawPushButton(hwnd, 614 615 616 619 hDC, 620 action, 621 bHighLighted); 617 622 } 618 623 … … 649 654 { 650 655 Rectangle(hDC, rc.left, rc.top, rc.right, rc.bottom); 651 656 InflateRect( &rc, -1, -1 ); 652 657 } 653 658 … … 693 698 /* don't write gray text on gray background */ 694 699 PaintGrayOnGray( hDC,infoPtr->hFont,&rc,text, 695 700 DT_CENTER | DT_VCENTER ); 696 701 else 697 702 { … … 702 707 DT_SINGLELINE | DT_CENTER | DT_VCENTER ); 703 708 /* do we have the focus? 704 705 709 * Win9x draws focus last with a size prop. to the button 710 */ 706 711 } 707 712 free(text); 708 713 } 709 714 if ( ((dwStyle & BS_ICON) || (dwStyle & BS_BITMAP) ) && 710 711 { 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 715 (infoPtr->hImage != NULL) ) 716 { 717 int yOffset, xOffset; 718 int imageWidth, imageHeight; 719 720 /* 721 * We extract the size of the image from the handle. 722 */ 723 if (dwStyle & BS_ICON) 724 { 725 ICONINFO iconInfo; 726 BITMAP bm; 727 728 GetIconInfo((HICON)infoPtr->hImage, &iconInfo); 729 GetObjectA (iconInfo.hbmColor, sizeof(BITMAP), &bm); 730 731 imageWidth = bm.bmWidth; 732 imageHeight = bm.bmHeight; 728 733 729 734 DeleteObject(iconInfo.hbmColor); 730 735 DeleteObject(iconInfo.hbmMask); 731 736 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 737 } 738 else 739 { 740 BITMAP bm; 741 742 GetObjectA (infoPtr->hImage, sizeof(BITMAP), &bm); 743 744 imageWidth = bm.bmWidth; 745 imageHeight = bm.bmHeight; 746 } 747 748 /* Center the bitmap */ 749 xOffset = (((rc.right - rc.left) - 2*xBorderOffset) - imageWidth ) / 2; 750 yOffset = (((rc.bottom - rc.top) - 2*yBorderOffset) - imageHeight) / 2; 751 752 /* If the image is too big for the button then create a region*/ 748 753 if(xOffset < 0 || yOffset < 0) 749 754 { 750 755 HRGN hBitmapRgn = NULL; 751 756 hBitmapRgn = CreateRectRgn( … … 754 759 SelectClipRgn(hDC, hBitmapRgn); 755 760 DeleteObject(hBitmapRgn); 756 757 758 759 760 761 762 763 764 765 766 761 } 762 763 /* Let minimum 1 space from border */ 764 xOffset++, yOffset++; 765 766 /* 767 * Draw the image now. 768 */ 769 if (dwStyle & BS_ICON) 770 { 771 DrawIcon(hDC, 767 772 rc.left + xOffset, rc.top + yOffset, 768 769 770 773 (HICON)infoPtr->hImage); 774 } 775 else 771 776 { 772 773 774 775 776 777 778 779 780 781 782 783 777 HDC hdcMem; 778 779 hdcMem = CreateCompatibleDC (hDC); 780 SelectObject (hdcMem, (HBITMAP)infoPtr->hImage); 781 BitBlt(hDC, 782 rc.left + xOffset, 783 rc.top + yOffset, 784 imageWidth, imageHeight, 785 hdcMem, 0, 0, SRCCOPY); 786 787 DeleteDC (hdcMem); 788 } 784 789 785 790 if(xOffset < 0 || yOffset < 0) … … 875 880 { 876 881 BOOL bHighLighted = ((infoPtr->state & BUTTON_HIGHLIGHTED) || 877 882 (infoPtr->state & BUTTON_CHECKED)); 878 883 879 884 BUTTON_DrawPushButton(hwnd, 880 881 882 883 885 hDC, 886 action, 887 bHighLighted); 888 return; 884 889 } 885 890 -
TabularUnified tags/trunk/src/user32/combo.cpp ¶
r11685 r11773 1 /* $Id: combo.cpp,v 1. 2 1999-10-01 10:15:22 sandervlExp $ */1 /* $Id: combo.cpp,v 1.3 1999-10-08 12:10:26 cbratschi Exp $ */ 2 2 /* 3 3 * Combo controls … … 58 58 if(hDC) 59 59 { 60 BOOL bRet = FALSE; 60 BOOL bRet = FALSE; 61 HINSTANCE hinst; 62 63 //CB: Open32 hack to load our own bitmap 64 hinst = LoadLibraryA("USER32.DLL"); 61 65 hComboBmp = NativeLoadBitmap(0,MAKEINTRESOURCEA(OBM_COMBO)); 66 FreeLibrary(hinst); 62 67 if(hComboBmp) 63 68 { … … 532 537 lbeStyle |= LBS_DISABLENOSCROLL; 533 538 534 if( CB_GETTYPE(lphc) == CBS_SIMPLE ) 539 if( CB_GETTYPE(lphc) == CBS_SIMPLE ) /* child listbox */ 535 540 { 536 537 538 539 540 541 541 lbeStyle |= WS_CHILD | WS_VISIBLE; 542 543 /* 544 * In win 95 look n feel, the listbox in the simple combobox has 545 * the WS_EXCLIENTEDGE style instead of the WS_BORDER style. 546 */ 542 547 lbeStyle &= ~WS_BORDER; 543 548 lbeExStyle |= WS_EX_CLIENTEDGE; 544 549 } 545 else 546 550 else /* popup listbox */ 551 lbeStyle |= WS_POPUP; 547 552 548 553 /* Dropdown ComboLBox is not a child window and we cannot pass … … 1132 1137 1133 1138 SetWindowPos( lphc->hWndLBox, HWND_TOP, rect.left, rect.bottom, 1134 1139 lphc->droppedRect.right - lphc->droppedRect.left, 1135 1140 nDroppedHeight, 1136 1141 SWP_NOACTIVATE | SWP_NOREDRAW); 1137 1142 1138 1143 … … 1164 1169 RECT rect; 1165 1170 1166 1167 1168 1169 1170 1171 /* 1172 * It seems useful to send the WM_LBUTTONUP with (-1,-1) when cancelling 1173 * and with (0,0) (anywhere in the listbox) when Oking. 1174 */ 1175 SendMessageA( lphc->hWndLBox, WM_LBUTTONUP, 0, ok ? (LPARAM)0 : (LPARAM)(-1) ); 1171 1176 1172 1177 lphc->wState &= ~CBF_DROPPED; -
TabularUnified tags/trunk/src/user32/oslibwin.cpp ¶
r11765 r11773 1 /* $Id: oslibwin.cpp,v 1.1 4 1999-10-07 23:21:30 sandervlExp $ */1 /* $Id: oslibwin.cpp,v 1.15 1999-10-08 12:10:27 cbratschi Exp $ */ 2 2 /* 3 3 * Window API wrappers for OS/2 … … 26 26 #include "oslibgdi.h" 27 27 #include "pmwindow.h" 28 29 #define HAS_3DFRAME(exStyle) \ 30 ((exStyle & WS_EX_CLIENTEDGE_W) || (exStyle & WS_EX_STATICEDGE_W) || (exStyle & WS_EX_WINDOWEDGE_W)) 28 31 29 32 //****************************************************************************** … … 115 118 if (dwStyle & WS_CHILD_W) 116 119 { 120 if (dwStyle & WS_BORDER_W || 121 dwStyle & WS_DLGFRAME_W || 122 dwStyle & WS_THICKFRAME_W) 123 if (!HAS_3DFRAME(*OSFrameStyle)) *OSFrameStyle |= WS_EX_WINDOWEDGE_W; 124 117 125 if (dwExStyle & WS_EX_CLIENTEDGE_W || 118 126 dwExStyle & WS_EX_STATICEDGE_W || … … 688 696 689 697 if(scrollBar == OSLIB_VSCROLL) { 690 698 hwndScroll = WinWindowFromID(hwndParent, FID_VERTSCROLL); 691 699 } 692 700 else hwndScroll = WinWindowFromID(hwndParent, FID_HORZSCROLL); 693 701 694 702 if(hwndScroll == NULL) 695 703 return FALSE; 696 704 697 705 return WinEnableWindow(hwndScroll, fEnable); … … 702 710 { 703 711 if(hwndScroll == NULL) { 704 705 712 dprintf(("OSLibWinShowScrollBar: scrollbar %d (parent %x) not found!", scrollBar, hwndParent)); 713 return FALSE; 706 714 } 707 715 708 if(fShow != WinIsWindowVisible(hwndScroll)) 716 if(fShow != WinIsWindowVisible(hwndScroll)) 709 717 { 710 718 WinSetParent(hwndScroll, fShow ? hwndParent : HWND_OBJECT, FALSE); 711 719 WinSendMsg(hwndParent, WM_UPDATEFRAME, 712 MPFROMLONG( ( scrollBar == OSLIB_VSCROLL ) ? FCF_VERTSCROLL 713 720 MPFROMLONG( ( scrollBar == OSLIB_VSCROLL ) ? FCF_VERTSCROLL 721 : FCF_HORZSCROLL), 714 722 MPVOID ); 715 723 716 724 WinShowWindow(hwndScroll, fShow); 717 725 } 718 return TRUE; 726 return TRUE; 719 727 } 720 728 //****************************************************************************** … … 723 731 { 724 732 if(scrollBar == OSLIB_VSCROLL) { 725 733 return WinWindowFromID(hwndParent, FID_VERTSCROLL); 726 734 } 727 735 else return WinWindowFromID(hwndParent, FID_HORZSCROLL); … … 732 740 { 733 741 if(hwndScroll == NULL) 734 742 return 0; 735 743 736 744 return (ULONG)WinSendMsg(hwndScroll, SBM_QUERYPOS, 0, 0); … … 743 751 744 752 if(hwndScroll == NULL) 745 753 return 0; 746 754 747 755 oldPos = (ULONG)WinSendMsg(hwndScroll, SBM_QUERYPOS, 0, 0); 748 756 749 757 if(WinSendMsg(hwndScroll, SBM_SETPOS, MPFROMSHORT(pos), MPFROMLONG(fRedraw)) == FALSE) 750 758 return 0; 751 759 752 760 return oldPos; … … 754 762 //****************************************************************************** 755 763 //****************************************************************************** 756 BOOL OSLibWinSetScrollRange(HWND hwndParent, HWND hwndScroll, int minpos, 764 BOOL OSLibWinSetScrollRange(HWND hwndParent, HWND hwndScroll, int minpos, 757 765 int maxpos, int fRedraw) 758 766 { 759 767 if(hwndScroll == NULL) 760 768 return 0; 761 769 762 770 return (BOOL)WinSendMsg( hwndScroll, SBM_SETSCROLLBAR, … … 766 774 //****************************************************************************** 767 775 //****************************************************************************** 768 BOOL OSLibWinSetScrollPageSize(HWND hwndParent, HWND hwndScroll, int pagesize, 776 BOOL OSLibWinSetScrollPageSize(HWND hwndParent, HWND hwndScroll, int pagesize, 769 777 int totalsize, int fRedraw) 770 778 { 771 779 if(hwndScroll == NULL) 772 780 return 0; 773 781 774 782 return (BOOL)WinSendMsg( hwndScroll, SBM_SETTHUMBSIZE, -
TabularUnified tags/trunk/src/user32/scroll.cpp ¶
r11748 r11773 1 /* $Id: scroll.cpp,v 1. 5 1999-10-07 09:28:01 sandervlExp $ */1 /* $Id: scroll.cpp,v 1.6 1999-10-08 12:10:27 cbratschi Exp $ */ 2 2 /* 3 3 * Scrollbar control … … 109 109 static void SCROLL_LoadBitmaps(void) 110 110 { 111 hUpArrow = LoadBitmapA( 0, MAKEINTRESOURCEA(OBM_UPARROW) ); 112 hDnArrow = LoadBitmapA( 0, MAKEINTRESOURCEA(OBM_DNARROW) ); 113 hLfArrow = LoadBitmapA( 0, MAKEINTRESOURCEA(OBM_LFARROW) ); 114 hRgArrow = LoadBitmapA( 0, MAKEINTRESOURCEA(OBM_RGARROW) ); 115 hUpArrowD = LoadBitmapA( 0, MAKEINTRESOURCEA(OBM_UPARROWD) ); 116 hDnArrowD = LoadBitmapA( 0, MAKEINTRESOURCEA(OBM_DNARROWD) ); 117 hLfArrowD = LoadBitmapA( 0, MAKEINTRESOURCEA(OBM_LFARROWD) ); 118 hRgArrowD = LoadBitmapA( 0, MAKEINTRESOURCEA(OBM_RGARROWD) ); 119 hUpArrowI = LoadBitmapA( 0, MAKEINTRESOURCEA(OBM_UPARROWI) ); 120 hDnArrowI = LoadBitmapA( 0, MAKEINTRESOURCEA(OBM_DNARROWI) ); 121 hLfArrowI = LoadBitmapA( 0, MAKEINTRESOURCEA(OBM_LFARROWI) ); 122 hRgArrowI = LoadBitmapA( 0, MAKEINTRESOURCEA(OBM_RGARROWI) ); 111 HINSTANCE hinst; 112 113 //CB: Open32 hack to load our own bitmap 114 hinst = LoadLibraryA("USER32.DLL"); 115 hUpArrow = NativeLoadBitmap( hinst, MAKEINTRESOURCEA(OBM_UPARROW) ); 116 hDnArrow = NativeLoadBitmap( hinst, MAKEINTRESOURCEA(OBM_DNARROW) ); 117 hLfArrow = NativeLoadBitmap( hinst, MAKEINTRESOURCEA(OBM_LFARROW) ); 118 hRgArrow = NativeLoadBitmap( hinst, MAKEINTRESOURCEA(OBM_RGARROW) ); 119 hUpArrowD = NativeLoadBitmap( hinst, MAKEINTRESOURCEA(OBM_UPARROWD) ); 120 hDnArrowD = NativeLoadBitmap( hinst, MAKEINTRESOURCEA(OBM_DNARROWD) ); 121 hLfArrowD = NativeLoadBitmap( hinst, MAKEINTRESOURCEA(OBM_LFARROWD) ); 122 hRgArrowD = NativeLoadBitmap( hinst, MAKEINTRESOURCEA(OBM_RGARROWD) ); 123 hUpArrowI = NativeLoadBitmap( hinst, MAKEINTRESOURCEA(OBM_UPARROWI) ); 124 hDnArrowI = NativeLoadBitmap( hinst, MAKEINTRESOURCEA(OBM_DNARROWI) ); 125 hLfArrowI = NativeLoadBitmap( hinst, MAKEINTRESOURCEA(OBM_LFARROWI) ); 126 hRgArrowI = NativeLoadBitmap( hinst, MAKEINTRESOURCEA(OBM_RGARROWI) ); 127 FreeLibrary(hinst); 123 128 } 124 129 … … 1554 1559 1555 1560 if(nBar == SB_HORZ || nBar == SB_BOTH) 1556 rc = OSLibWinShowScrollBar(window->getOS2FrameWindowHandle(), 1557 window->getHorzScrollHandle(), 1561 rc = OSLibWinShowScrollBar(window->getOS2FrameWindowHandle(), 1562 window->getHorzScrollHandle(), 1558 1563 OSLIB_HSCROLL, fShow); 1559 1564 1560 1565 if(nBar == SB_VERT || ( rc == TRUE && nBar == SB_BOTH)) 1561 1566 rc = OSLibWinShowScrollBar(window->getOS2FrameWindowHandle(), 1562 window->getVertScrollHandle(), 1567 window->getVertScrollHandle(), 1563 1568 OSLIB_VSCROLL, fShow); 1564 1569 -
TabularUnified tags/trunk/src/user32/win32wbase.cpp ¶
r11765 r11773 1 /* $Id: win32wbase.cpp,v 1.2 7 1999-10-07 23:21:31 sandervlExp $ */1 /* $Id: win32wbase.cpp,v 1.28 1999-10-08 12:10:27 cbratschi Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 482 482 if (cs->style & WS_HSCROLL) 483 483 { 484 484 hwndHorzScroll = OSLibWinQueryScrollBarHandle(OS2HwndFrame, OSLIB_HSCROLL); 485 485 } 486 486 487 487 if (cs->style & WS_VSCROLL) { 488 488 hwndVertScroll = OSLibWinQueryScrollBarHandle(OS2HwndFrame, OSLIB_VSCROLL); 489 489 } 490 490 … … 507 507 else 508 508 { 509 509 setWindowId((DWORD)cs->hMenu); 510 510 } 511 511 … … 1304 1304 } 1305 1305 infoPtr = horzScrollInfo; 1306 1306 hwndScroll = hwndHorzScroll; 1307 1307 scrollType = OSLIB_HSCROLL; 1308 1308 break; … … 1312 1312 } 1313 1313 infoPtr = vertScrollInfo; 1314 1314 hwndScroll = hwndVertScroll; 1315 1315 scrollType = OSLIB_VSCROLL; 1316 1316 break; … … 1419 1419 { 1420 1420 case WM_CLOSE: 1421 1422 1421 DestroyWindow(); 1422 return 0; 1423 1423 1424 1424 case WM_GETTEXTLENGTH: … … 1430 1430 1431 1431 case WM_SETTEXT: 1432 1433 1434 1435 elsereturn 0;1432 if(!fInternalMsg) { 1433 return SetWindowTextA((LPSTR)lParam); 1434 } 1435 else return 0; 1436 1436 1437 1437 case WM_SETREDRAW: … … 1590 1590 1591 1591 case WM_SETTEXT: 1592 1593 1594 1595 elsereturn 0;1592 if(!fInternalMsg) { 1593 return SetWindowTextW((LPWSTR)lParam); 1594 } 1595 else return 0; 1596 1596 1597 1597 default: … … 1622 1622 dprintf(("WM_CREATE returned -1\n")); 1623 1623 rc = -1; //don't create window 1624 1624 break; 1625 1625 } 1626 1626 NotifyParent(Msg, wParam, lParam); 1627 1627 1628 1628 rc = 0; 1629 1629 break; 1630 1630 } 1631 1631 case WM_SETTEXT: 1632 1632 rc = win32wndproc(getWindowHandle(), WM_SETTEXT, wParam, lParam); 1633 1633 break; 1634 1634 1635 1635 case WM_LBUTTONDOWN: … … 1638 1638 NotifyParent(Msg, wParam, lParam); 1639 1639 rc = win32wndproc(getWindowHandle(), Msg, wParam, lParam); 1640 1640 break; 1641 1641 1642 1642 case WM_DESTROY: 1643 1643 rc = win32wndproc(getWindowHandle(), WM_DESTROY, 0, 0); 1644 1644 break; 1645 1645 1646 1646 default: 1647 1648 1647 rc = win32wndproc(getWindowHandle(), Msg, wParam, lParam); 1648 break; 1649 1649 } 1650 1650 fInternalMsg = fInternalMsgBackup; … … 1674 1674 dprintf(("WM_CREATE returned -1\n")); 1675 1675 rc = -1; //don't create window 1676 1676 break; 1677 1677 } 1678 1678 NotifyParent(Msg, wParam, lParam); 1679 1679 1680 1680 rc = 0; 1681 1681 break; 1682 1682 } 1683 1683 case WM_SETTEXT: 1684 1684 rc = win32wndproc(getWindowHandle(), WM_SETTEXT, wParam, lParam); 1685 1685 break; 1686 1686 1687 1687 case WM_LBUTTONDOWN: … … 1690 1690 NotifyParent(Msg, wParam, lParam); 1691 1691 rc = win32wndproc(getWindowHandle(), Msg, wParam, lParam); 1692 1692 break; 1693 1693 1694 1694 case WM_DESTROY: … … 1696 1696 NotifyParent(Msg, wParam, lParam); 1697 1697 rc = win32wndproc(getWindowHandle(), WM_DESTROY, 0, 0); 1698 1698 break; 1699 1699 1700 1700 default: 1701 1702 1701 rc = win32wndproc(getWindowHandle(), Msg, wParam, lParam); 1702 break; 1703 1703 } 1704 1704 fInternalMsg = fInternalMsgBackup; … … 1727 1727 dprintf(("WM_CREATE returned -1\n")); 1728 1728 rc = -1; //don't create window 1729 1729 break; 1730 1730 } 1731 1731 NotifyParent(Msg, wParam, lParam); 1732 1732 rc = 0; 1733 1733 break; 1734 1734 } 1735 1735 case WM_LBUTTONDOWN: … … 1738 1738 NotifyParent(Msg, wParam, lParam); 1739 1739 rc = win32wndproc(getWindowHandle(), Msg, wParam, lParam); 1740 1740 break; 1741 1741 1742 1742 case WM_DESTROY: … … 1744 1744 NotifyParent(Msg, wParam, lParam); 1745 1745 rc = win32wndproc(getWindowHandle(), WM_DESTROY, 0, 0); 1746 1746 break; 1747 1747 default: 1748 1749 1748 rc = win32wndproc(getWindowHandle(), Msg, wParam, lParam); 1749 break; 1750 1750 } 1751 1751 fInternalMsg = fInternalMsgBackup; … … 1775 1775 dprintf(("WM_CREATE returned -1\n")); 1776 1776 rc = -1; //don't create window 1777 1777 break; 1778 1778 } 1779 1779 NotifyParent(Msg, wParam, lParam); … … 1786 1786 NotifyParent(Msg, wParam, lParam); 1787 1787 rc = win32wndproc(getWindowHandle(), Msg, wParam, lParam); 1788 1788 break; 1789 1789 1790 1790 case WM_DESTROY: … … 1792 1792 NotifyParent(Msg, wParam, lParam); 1793 1793 rc = win32wndproc(getWindowHandle(), WM_DESTROY, 0, 0); 1794 1794 break; 1795 1795 default: 1796 1797 1796 rc = win32wndproc(getWindowHandle(), Msg, wParam, lParam); 1797 break; 1798 1798 } 1799 1799 fInternalMsg = fInternalMsgBackup; … … 2363 2363 return FALSE; 2364 2364 2365 if(windowNameA) 2366 if(windowNameW) 2365 if(windowNameA) free(windowNameA); 2366 if(windowNameW) free(windowNameW); 2367 2367 2368 2368 windowNameA = (LPSTR)_smalloc(strlen(lpsz)+1); … … 2384 2384 return FALSE; 2385 2385 2386 if(windowNameA) 2387 if(windowNameW) 2386 if(windowNameA) free(windowNameA); 2387 if(windowNameW) free(windowNameW); 2388 2388 2389 2389 windowNameW = (LPWSTR)_smalloc((lstrlenW((LPWSTR)lpsz)+1)*sizeof(WCHAR)); … … 2406 2406 switch(index) { 2407 2407 case GWL_EXSTYLE: 2408 oldval = dwExStyle; 2409 setExStyle(value); 2410 return oldval; 2408 { 2409 STYLESTRUCT ss; 2410 2411 ss.styleOld = dwExStyle; 2412 ss.styleNew = value; 2413 SendInternalMessageA(WM_STYLECHANGING,GWL_EXSTYLE,(LPARAM)&ss); 2414 oldval = dwExStyle; 2415 setExStyle(value); 2416 SendInternalMessageA(WM_STYLECHANGED,GWL_EXSTYLE,(LPARAM)&ss); 2417 return oldval; 2418 } 2411 2419 case GWL_STYLE: 2412 oldval = dwStyle; 2413 setStyle(value); 2414 OSLibSetWindowStyle(OS2HwndFrame, dwStyle); 2415 return oldval; 2420 { 2421 STYLESTRUCT ss; 2422 2423 ss.styleOld = dwStyle; 2424 ss.styleNew = value; 2425 SendInternalMessageA(WM_STYLECHANGING,GWL_STYLE,(LPARAM)&ss); 2426 oldval = dwStyle; 2427 setStyle(value); 2428 OSLibSetWindowStyle(OS2HwndFrame, dwStyle); 2429 SendInternalMessageA(WM_STYLECHANGED,GWL_STYLE,(LPARAM)&ss); 2430 return oldval; 2431 } 2416 2432 case GWL_WNDPROC: 2417 2433 oldval = (LONG)getWindowProc();
Note:
See TracChangeset
for help on using the changeset viewer.