Changeset 4026 for trunk/src/comctl32/propsheet.cpp
- Timestamp:
- Aug 17, 2000, 7:08:15 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/comctl32/propsheet.cpp
r4006 r4026 1 /* $Id: propsheet.cpp,v 1. 7 2000-08-13 17:12:39cbratschi Exp $ */1 /* $Id: propsheet.cpp,v 1.8 2000-08-17 17:08:15 cbratschi Exp $ */ 2 2 /* 3 3 * Property Sheets … … 11 11 * - Tab order 12 12 * - Unicode property sheets 13 * - Wizard bugs 13 14 */ 14 15 … … 133 134 static int PROPSHEET_GetPageIndex(HPROPSHEETPAGE hpage, PropSheetInfo* psInfo); 134 135 static void PROPSHEET_SetWizButtons(HWND hwndDlg, DWORD dwFlags); 135 static PADDING_INFO PROPSHEET_GetPaddingInfoWizard(HWND hwndDlg );136 static PADDING_INFO PROPSHEET_GetPaddingInfoWizard(HWND hwndDlg,PropSheetInfo* psInfo); 136 137 static BOOL PROPSHEET_IsDialogMessage(HWND hwnd, LPMSG lpMsg); 137 138 static INT PROPSHEET_DoDialogBox( HWND hwnd, HWND owner); … … 551 552 RECT rcSheetRect, rcPage, rcLine, rcSheetClient; 552 553 HWND hwndLine = GetDlgItem(hwndDlg, IDC_SUNKEN_LINE); 553 PADDING_INFO padding = PROPSHEET_GetPaddingInfoWizard(hwndDlg );554 PADDING_INFO padding = PROPSHEET_GetPaddingInfoWizard(hwndDlg,psInfo); 554 555 555 556 GetClientRect(hwndDlg, &rcSheetClient); … … 653 654 RECT rc; 654 655 int buttonHeight, lineHeight; 655 PADDING_INFO padding = PROPSHEET_GetPaddingInfoWizard(hwndDlg );656 PADDING_INFO padding = PROPSHEET_GetPaddingInfoWizard(hwndDlg,psInfo); 656 657 657 658 /* Get the height of buttons */ … … 796 797 int num_buttons = 3; 797 798 int buttonWidth, buttonHeight, lineHeight, lineWidth; 798 PADDING_INFO padding = PROPSHEET_GetPaddingInfoWizard(hwndParent );799 PADDING_INFO padding = PROPSHEET_GetPaddingInfoWizard(hwndParent,psInfo); 799 800 800 801 if (psInfo->hasHelp) … … 920 921 * Vertical spacing is the distance between the line and the buttons. 921 922 */ 922 static PADDING_INFO PROPSHEET_GetPaddingInfoWizard(HWND hwndDlg )923 static PADDING_INFO PROPSHEET_GetPaddingInfoWizard(HWND hwndDlg,PropSheetInfo* psInfo) 923 924 { 924 925 PADDING_INFO padding; … … 956 957 padding.x = ptHelp.x - ptCancel.x; 957 958 padding.y = ptHelp.y - ptLine.y; 959 960 //CB: BUG: psInfo->hasHelp not checked -> negative values 961 // add better wizard handling, fix button placement bugs FIXME 962 // 963 // workaround for now: 964 if (padding.x < 0) padding.x = 0; 965 if (padding.y < 0) padding.y = 0; 958 966 959 967 return padding; … … 1175 1183 1176 1184 if (psInfo->ppshheader->dwFlags & PSH_WIZARD) 1177 padding = PROPSHEET_GetPaddingInfoWizard(hwndDlg );1185 padding = PROPSHEET_GetPaddingInfoWizard(hwndDlg,psInfo); 1178 1186 else 1179 1187 { … … 1187 1195 } 1188 1196 1189 SetWindowPos(psInfo->proppage[index].hwndPage, HWND_TOP, 1190 rc.left + padding.x, 1191 rc.top + padding.y, 1192 pageWidth, pageHeight, SWP_SHOWWINDOW); 1197 SetWindowPos(psInfo->proppage[index].hwndPage,HWND_TOP,rc.left+padding.x,rc.top+padding.y,pageWidth,pageHeight,SWP_SHOWWINDOW); 1193 1198 1194 1199 if (!(psInfo->ppshheader->dwFlags & PSH_WIZARD))
Note:
See TracChangeset
for help on using the changeset viewer.