Ignore:
Timestamp:
Dec 11, 2000, 8:54:20 AM (25 years ago)
Author:
umoeller
Message:

Coupla bugfixes.

File:
1 edited

Legend:

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

    r14 r15  
    24802480 *          object.
    24812481 *
     2482 *      Even though this isn't clearly said in PMREF,
     2483 *      PROGDETAILS.swpInitial is important:
     2484 *
     2485 *      -- To start a session minimized, set SWP_MINIMIZE.
     2486 *
     2487 *      -- To start a VIO session without auto-close, set
     2488 *         the half-documented SWP_NOAUTOCLOSE flag (0x8000)
     2489 *         This flag is now in the newer toolkit headers.
     2490 *
    24822491 *      Since this calls WinStartApp in turn, this
    24832492 *      requires a message queue on the calling thread.
    24842493 *
    24852494 *@@added V0.9.6 (2000-10-16) [umoeller]
     2495 *@@changed V0.9.7 (2000-12-10) [umoeller]: PROGDETAILS.swpInitial no longer zeroed... this broke VIOs
    24862496 */
    24872497
     
    25002510    ProgDetails.Length = sizeof(PROGDETAILS);
    25012511    ProgDetails.progt.fbVisible = SHE_VISIBLE;
    2502     ProgDetails.pszEnvironment = 0; // "WORKPLACE\0\0";
    2503     memset(&ProgDetails.swpInitial, 0, sizeof(SWP));
     2512    ProgDetails.pszEnvironment = 0;
     2513
     2514    // memset(&ProgDetails.swpInitial, 0, sizeof(SWP));
     2515            // this wasn't a good idea... WPProgram stores stuff
     2516            // in here, such as the "minimize on startup" -> SWP_MINIMIZE
    25042517
    25052518    // duplicate parameters...
     
    25132526
    25142527    // program type fixups
    2515     switch (ProgDetails.progt.progc)
     2528    switch (ProgDetails.progt.progc)        // that's a ULONG
    25162529    {
    25172530        case ((ULONG)-1):       // we get that sometimes...
     
    25242537    switch (ProgDetails.progt.progc)
    25252538    {
    2526         case PROG_31_ENH:
    2527         case PROG_31_ENHSEAMLESSCOMMON:
    2528         case PROG_31_ENHSEAMLESSVDM:
     2539        case PROG_31_ENHSEAMLESSVDM:        // 17
     2540        case PROG_31_ENHSEAMLESSCOMMON:     // 18
     2541        case PROG_31_ENH:                   // 19
    25292542            fIsWindowsApp = TRUE;
    25302543            fIsWindowsEnhApp = TRUE;
    25312544        break;
    25322545
    2533         case PROG_WINDOW_AUTO:
    2534 #ifdef PROG_30_STD
    2535         case PROG_30_STD:
     2546#ifndef PROG_30_STD
     2547    #define PROG_30_STD (PROGCATEGORY)11
    25362548#endif
    2537         case PROG_31_STD:
    2538         case PROG_WINDOW_REAL:
    2539 #ifdef PROG_30_STDSEAMLESSVDM
    2540         case PROG_30_STDSEAMLESSVDM:
     2549
     2550#ifndef PROG_30_STDSEAMLESSVDM
     2551    #define PROG_30_STDSEAMLESSVDM (PROGCATEGORY)13
    25412552#endif
    2542         case PROG_31_STDSEAMLESSVDM:
    2543         case PROG_30_STDSEAMLESSCOMMON:
    2544         case PROG_31_STDSEAMLESSCOMMON:
     2553
     2554        case PROG_WINDOW_REAL:              // 10
     2555        case PROG_30_STD:                   // 11
     2556        case PROG_WINDOW_AUTO:              // 12
     2557        case PROG_30_STDSEAMLESSVDM:        // 13
     2558        case PROG_30_STDSEAMLESSCOMMON:     // 14
     2559        case PROG_31_STDSEAMLESSVDM:        // 15
     2560        case PROG_31_STDSEAMLESSCOMMON:     // 16
     2561        case PROG_31_STD:                   // 20
    25452562            fIsWindowsApp = TRUE;
    25462563        break;
     
    27052722                            // do not use SAF_STARTCHILDAPP, or the
    27062723                            // app will be terminated automatically
     2724                            // when the WPS terminates!
    27072725
    27082726    // _Pmpf((__FUNCTION__ ": got happ 0x%lX", happ));
Note: See TracChangeset for help on using the changeset viewer.