Changeset 235 for trunk/src/helpers/dialog.c
- Timestamp:
- Dec 12, 2002, 12:50:50 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/helpers/dialog.c
r232 r235 92 92 #include "helpers\gpih.h" 93 93 #include "helpers\linklist.h" 94 #include "helpers\nlscache.h" 94 95 #include "helpers\standards.h" 95 96 #include "helpers\stringh.h" … … 1497 1498 strhncpy0(szText2, pcszText, sizeof(szText2)); 1498 1499 1500 #ifdef DEBUG_DIALOG_WINDOWS 1499 1501 _Pmpf(("Crash creating control of class 0x%lX (%s), title 0x%lX (%s)", 1500 1502 szClass2, 1501 1503 szText2)); 1504 #endif 1505 1502 1506 arc = ERROR_PROTECTION_VIOLATION; 1503 1507 } END_CATCH(); … … 1761 1765 LONG cxWidestRowsMinBox = pOwningTable->cxMinBox; // pWidestRow->cxMinBox; 1762 1766 1767 #ifdef DEBUG_DIALOG_WINDOWS 1763 1768 _Pmpf((" pWidestRow->cxMinBox %d", pWidestRow->cxMinBox)); 1764 1769 _Pmpf((" pOwningTable->cxMinBox %d", pOwningTable->cxMinBox)); 1770 #endif 1765 1771 1766 1772 // now, since we're supposed to set our own CONTENT … … 1860 1866 strhncpy0(szTemp, pControlDef->pcszText, sizeof(szTemp)); 1861 1867 strcpy(szTemp + 35, "..."); 1868 1869 #ifdef DEBUG_DIALOG_WINDOWS 1862 1870 _PmpfF((" widest column is [%s] cxMinContent %d", 1863 1871 szTemp, 1864 1872 pCorrespondingColumn->cxMinContent)); 1873 #endif 1865 1874 } 1866 1875 } … … 2242 2251 } 2243 2252 2253 #ifdef DEBUG_DIALOG_WINDOWS 2244 2254 _Pmpf((" cxMax found is %d", cxMax)); 2255 #endif 2245 2256 2246 2257 pTableDef->cxMinBox = cxMax … … 2394 2405 * 2395 2406 *@@changed V1.0.0 (2002-08-18) [umoeller]: mostly rewritten for new algorithm 2407 *@@changed V1.0.1 (2002-12-11) [umoeller]: added interface into nlsGetString 2396 2408 */ 2397 2409 … … 2446 2458 // copy control fields 2447 2459 pColumn->pcszClass = pControlDef->pcszClass; 2448 pColumn->pcszText = pControlDef->pcszText; 2460 2461 if (pControlDef->pcszText == LOAD_STRING) 2462 pColumn->pcszText = nlsGetString(pControlDef->usID); 2463 // V1.0.1 (2002-12-11) [umoeller] 2464 else 2465 pColumn->pcszText = pControlDef->pcszText; 2466 2449 2467 pColumn->flStyle = pControlDef->flStyle; 2450 2468 pColumn->usID = pControlDef->usID; … … 2569 2587 2570 2588 if (!(pDlgData = NEW(DLGPRIVATE))) 2571 return (ERROR_NOT_ENOUGH_MEMORY);2589 return ERROR_NOT_ENOUGH_MEMORY; 2572 2590 2573 2591 ZERO(pDlgData); … … 3894 3912 } 3895 3913 3896 return (MBID_CANCEL);3914 return MBID_CANCEL; 3897 3915 } 3898 3916 … … 3966 3984 { 3967 3985 // SHOW DIALOG 3968 return (dlghProcessMessageBox(hwndDlg,3969 3970 flFlags));3986 return dlghProcessMessageBox(hwndDlg, 3987 ulAlarmFlag, 3988 flFlags); 3971 3989 } 3972 3990 … … 3979 3997 MB_CANCEL | MB_MOVEABLE); 3980 3998 3981 return (DID_CANCEL);3999 return DID_CANCEL; 3982 4000 } 3983 4001 … … 4119 4137 xstrClear(&strTitle); 4120 4138 4121 return (pszReturn);4139 return pszReturn; 4122 4140 } 4123 4141 … … 4313 4331 } 4314 4332 4315 return (hwndFound);4333 return hwndFound; 4316 4334 } 4317 4335 … … 4346 4364 (MPARAM)TRUE, // upclick 4347 4365 0); 4348 return (TRUE);4366 return TRUE; 4349 4367 } 4350 4368 } … … 4354 4372 } 4355 4373 4356 return (FALSE);4374 return FALSE; 4357 4375 } 4358 4376
Note:
See TracChangeset
for help on using the changeset viewer.