Ignore:
Timestamp:
Dec 12, 2002, 12:50:50 PM (23 years ago)
Author:
umoeller
Message:

Minor changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/helpers/dialog.c

    r232 r235  
    9292#include "helpers\gpih.h"
    9393#include "helpers\linklist.h"
     94#include "helpers\nlscache.h"
    9495#include "helpers\standards.h"
    9596#include "helpers\stringh.h"
     
    14971498                    strhncpy0(szText2, pcszText, sizeof(szText2));
    14981499
     1500                #ifdef DEBUG_DIALOG_WINDOWS
    14991501                _Pmpf(("Crash creating control of class 0x%lX (%s), title 0x%lX (%s)",
    15001502                        szClass2,
    15011503                        szText2));
     1504                #endif
     1505
    15021506                arc = ERROR_PROTECTION_VIOLATION;
    15031507            } END_CATCH();
     
    17611765                        LONG        cxWidestRowsMinBox = pOwningTable->cxMinBox; // pWidestRow->cxMinBox;
    17621766
     1767                        #ifdef DEBUG_DIALOG_WINDOWS
    17631768                        _Pmpf(("  pWidestRow->cxMinBox %d", pWidestRow->cxMinBox));
    17641769                        _Pmpf(("  pOwningTable->cxMinBox %d", pOwningTable->cxMinBox));
     1770                        #endif
    17651771
    17661772                        // now, since we're supposed to set our own CONTENT
     
    18601866                                    strhncpy0(szTemp, pControlDef->pcszText, sizeof(szTemp));
    18611867                                    strcpy(szTemp + 35, "...");
     1868
     1869                                    #ifdef DEBUG_DIALOG_WINDOWS
    18621870                                    _PmpfF(("   widest column is [%s] cxMinContent %d",
    18631871                                            szTemp,
    18641872                                            pCorrespondingColumn->cxMinContent));
     1873                                    #endif
    18651874                                }
    18661875                            }
     
    22422251                    }
    22432252
     2253                    #ifdef DEBUG_DIALOG_WINDOWS
    22442254                    _Pmpf(("    cxMax found is %d", cxMax));
     2255                    #endif
    22452256
    22462257                    pTableDef->cxMinBox =   cxMax
     
    23942405 *
    23952406 *@@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
    23962408 */
    23972409
     
    24462458                // copy control fields
    24472459                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
    24492467                pColumn->flStyle = pControlDef->flStyle;
    24502468                pColumn->usID = pControlDef->usID;
     
    25692587
    25702588    if (!(pDlgData = NEW(DLGPRIVATE)))
    2571         return (ERROR_NOT_ENOUGH_MEMORY);
     2589        return ERROR_NOT_ENOUGH_MEMORY;
    25722590
    25732591    ZERO(pDlgData);
     
    38943912        }
    38953913
    3896     return (MBID_CANCEL);
     3914    return MBID_CANCEL;
    38973915}
    38983916
     
    39663984    {
    39673985        // SHOW DIALOG
    3968         return (dlghProcessMessageBox(hwndDlg,
    3969                                       ulAlarmFlag,
    3970                                       flFlags));
     3986        return dlghProcessMessageBox(hwndDlg,
     3987                                     ulAlarmFlag,
     3988                                     flFlags);
    39713989    }
    39723990
     
    39793997                  MB_CANCEL | MB_MOVEABLE);
    39803998
    3981     return (DID_CANCEL);
     3999    return DID_CANCEL;
    39824000}
    39834001
     
    41194137    xstrClear(&strTitle);
    41204138
    4121     return (pszReturn);
     4139    return pszReturn;
    41224140}
    41234141
     
    43134331    }
    43144332
    4315     return (hwndFound);
     4333    return hwndFound;
    43164334}
    43174335
     
    43464364                               (MPARAM)TRUE,        // upclick
    43474365                               0);
    4348                     return (TRUE);
     4366                    return TRUE;
    43494367                }
    43504368            }
     
    43544372    }
    43554373
    4356     return (FALSE);
     4374    return FALSE;
    43574375}
    43584376
Note: See TracChangeset for help on using the changeset viewer.