Changeset 122 for trunk/src/helpers/dialog.c
- Timestamp:
- Dec 8, 2001, 11:14:27 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/helpers/dialog.c
r113 r122 616 616 *@@added V0.9.15 (2001-08-26) [umoeller] 617 617 *@@changed V0.9.16 (2001-10-15) [umoeller]: fixed ugly group table spacings 618 *@@changed V0.9.16 (2001-12-08) [umoeller]: fixed entry field ES_MARGIN positioning 618 619 */ 619 620 … … 701 702 y -= 100; 702 703 cy += 100; 704 } 705 // the stupid entry field resizes itself if it has 706 // the ES_MARGIN style, so correlate that too... dammit 707 // V0.9.16 (2001-12-08) [umoeller] 708 else if ( ((ULONG)pControlDef->pcszClass == 0xffff0006L) 709 && (flStyle & ES_MARGIN) 710 ) 711 { 712 LONG cxMargin = 3 * WinQuerySysValue(HWND_DESKTOP, SV_CXBORDER); 713 LONG cyMargin = 3 * WinQuerySysValue(HWND_DESKTOP, SV_CYBORDER); 714 715 x += cxMargin; 716 y += cxMargin; 703 717 } 704 718 } … … 1728 1742 *@@changed V0.9.14 (2001-08-01) [umoeller]: fixed major memory leaks with nested tables 1729 1743 *@@changed V0.9.14 (2001-08-21) [umoeller]: fixed default push button problems 1744 *@@changed V0.9.16 (2001-12-06) [umoeller]: fixed bad owner if not direct desktop child 1730 1745 */ 1731 1746 … … 1746 1761 PDLGPRIVATE pDlgData = NULL; 1747 1762 1763 HWND hwndDesktop = WinQueryDesktopWindow(NULLHANDLE, NULLHANDLE); 1764 // works with a null HAB 1765 1748 1766 /* 1749 1767 * 1) parse the table and create structures from it … … 1765 1783 FRAMECDATA fcData = {0}; 1766 1784 ULONG flStyle = 0; 1785 HWND hwndOwnersParent; 1767 1786 1768 1787 fcData.cb = sizeof(FRAMECDATA); … … 1780 1799 // V0.9.14 (2001-07-07) [umoeller] 1781 1800 hwndOwner = NULLHANDLE; 1801 1802 // now, make sure the owner window is child of 1803 // HWND_DESKTOP... if it is not, we'll only disable 1804 // some dumb child window, which is not sufficient 1805 // V0.9.16 (2001-12-06) [umoeller] 1806 while ( (hwndOwner) 1807 && (hwndOwnersParent = WinQueryWindow(hwndOwner, QW_PARENT)) 1808 && (hwndOwnersParent != hwndDesktop) 1809 ) 1810 hwndOwner = hwndOwnersParent; 1782 1811 1783 1812 if (!(pDlgData->hwndDlg = WinCreateWindow(HWND_DESKTOP,
Note:
See TracChangeset
for help on using the changeset viewer.