Changeset 101 for trunk/src/helpers
- Timestamp:
- Aug 26, 2001, 10:44:19 AM (24 years ago)
- Location:
- trunk/src/helpers
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/helpers/apps.c
r95 r101 564 564 * -- PROG_PM 565 565 * 566 * -- PROG_31_ENH 566 * -- PROG_31_ENHSEAMLESSCOMMON 567 567 * 568 568 * -- PROG_WINDOWABLEVIO … … 764 764 *@@changed V0.9.12 (2001-05-27) [umoeller]: moved from winh.c to apps.c 765 765 *@@changed V0.9.14 (2001-08-07) [pr]: removed some env. strings for Win. apps. 766 *@@changed V0.9.14 (2001-08-23) [pr]: added session type options 766 767 */ 767 768 768 769 HAPP appStartApp(HWND hwndNotify, // in: notify window (as with WinStartApp) 769 const PROGDETAILS *pcProgDetails) // in: program data 770 const PROGDETAILS *pcProgDetails, // in: program data 771 ULONG ulFlags) // in: session type options 770 772 { 771 773 HAPP happ = NULLHANDLE; … … 820 822 } 821 823 822 ulIsWinApp = appIsWindowsApp(ProgDetails.progt.progc); 823 824 // now try again... 824 // Set session type from option flags 825 if (ulFlags & APP_RUN_FULLSCREEN) 826 { 827 if (ProgDetails.progt.progc == PROG_WINDOWABLEVIO) 828 ProgDetails.progt.progc = PROG_FULLSCREEN; 829 830 if (ProgDetails.progt.progc == PROG_WINDOWEDVDM) 831 ProgDetails.progt.progc = PROG_VDM; 832 } 833 834 if (ulIsWinApp = appIsWindowsApp(ProgDetails.progt.progc)) 835 { 836 if (ulFlags & APP_RUN_FULLSCREEN) 837 ProgDetails.progt.progc = (ulFlags & APP_RUN_ENHANCED) 838 ? PROG_31_ENH 839 : PROG_31_STD; 840 else 841 { 842 if (ulFlags & APP_RUN_STANDARD) 843 ProgDetails.progt.progc = (ulFlags & APP_RUN_SEPARATE) 844 ? PROG_31_STDSEAMLESSVDM 845 : PROG_31_STDSEAMLESSCOMMON; 846 847 if (ulFlags & APP_RUN_ENHANCED) 848 ProgDetails.progt.progc = (ulFlags & APP_RUN_SEPARATE) 849 ? PROG_31_ENHSEAMLESSVDM 850 : PROG_31_ENHSEAMLESSCOMMON; 851 } 852 } 825 853 826 854 /* … … 829 857 */ 830 858 831 if ( strcmp(ProgDetails.pszExecutable, "*") == 0)859 if (!strcmp(ProgDetails.pszExecutable, "*")) 832 860 { 833 861 /* … … 870 898 } // end if (strcmp(pProgDetails->pszExecutable, "*") == 0) 871 899 else 900 { 901 PSZ pszExtension; 872 902 switch (ProgDetails.progt.progc) 873 903 { … … 880 910 case PROG_WINDOWABLEVIO: // OS/2 window 881 911 { 882 PSZ pszExtension = doshGetExtension(ProgDetails.pszExecutable); 883 if (pszExtension) 912 if ( (pszExtension = doshGetExtension(ProgDetails.pszExecutable)) 913 && (!stricmp(pszExtension, "CMD")) 914 ) 884 915 { 885 if (stricmp(pszExtension, "CMD") == 0) 886 { 887 CallBatchCorrectly(&ProgDetails, 888 &strParamsPatched, 889 "OS2_SHELL", 890 "CMD.EXE"); 891 } 916 CallBatchCorrectly(&ProgDetails, 917 &strParamsPatched, 918 "OS2_SHELL", 919 "CMD.EXE"); 892 920 } 893 921 break; } … … 896 924 case PROG_WINDOWEDVDM: // DOS window 897 925 { 898 PSZ pszExtension = doshGetExtension(ProgDetails.pszExecutable); 899 if (pszExtension) 926 if ( (pszExtension = doshGetExtension(ProgDetails.pszExecutable)) 927 && (!stricmp(pszExtension, "BAT")) 928 ) 900 929 { 901 if (stricmp(pszExtension, "BAT") == 0) 902 { 903 CallBatchCorrectly(&ProgDetails, 904 &strParamsPatched, 905 NULL, 906 "COMMAND.COM"); 907 } 930 CallBatchCorrectly(&ProgDetails, 931 &strParamsPatched, 932 NULL, 933 "COMMAND.COM"); 908 934 } 909 935 break; } 910 936 } // end switch (ProgDetails.progt.progc) 937 } 911 938 912 939 if ( (ulIsWinApp) … … 976 1003 ProgDetails.pszParameters = strParamsPatched.psz; 977 1004 978 _Pmpf(("progt.progc: %d", ProgDetails.progt.progc));1005 /* _Pmpf(("progt.progc: %d", ProgDetails.progt.progc)); 979 1006 _Pmpf(("progt.fbVisible: 0x%lX", ProgDetails.progt.fbVisible)); 980 1007 _Pmpf(("progt.pszTitle: \"%s\"", (ProgDetails.pszTitle) ? ProgDetails.pszTitle : "NULL")); … … 1004 1031 ProgDetails.swpInitial.ulReserved1, 1005 1032 ProgDetails.swpInitial.ulReserved2)); 1033 */ 1006 1034 1007 1035 /* if (WinMessageBox(HWND_DESKTOP, -
trunk/src/helpers/dialog.c
r98 r101 1062 1062 * 1063 1063 * The main advantage compared to dialog resources is 1064 * that with this 1064 * that with this function, you will never have to 1065 1065 * define control _positions_. Instead, you only specify 1066 1066 * the control _sizes_, and all positions are computed -
trunk/src/helpers/winh.c
r95 r101 2281 2281 * MPARAM's, one for each control in your array. 2282 2282 * Each MPARAM will have the control's ID and the 2283 * XA F* flags (winh.h) how the control shall be moved.2283 * XAC_* flags (winh.h) how the control shall be moved. 2284 2284 * Use MPFROM2SHORT to easily create this. Example: 2285 2285 * … … 2299 2299 * 2300 2300 * ZERO THAT STRUCTURE (memset(&xac, 0, sizeof(XADJUSTCTRLS), 2301 * or this func will not work. 2302 * 2303 * Call this function with pswpNew == NULL and 2304 * pxac pointing to that new structure. This will 2305 * query the positions of all the controls listed 2306 * in the MPARAMs array and store them in the 2307 * XADJUSTCTRLS area. 2301 * or this func will not work (because it will intialize 2302 * things on the first WM_WINDOWPOSCHANGED). 2308 2303 * 2309 2304 * 3) Intercept WM_WINDOWPOSCHANGED:
Note:
See TracChangeset
for help on using the changeset viewer.