Changeset 1155
Legend:
- Unmodified
- Added
- Removed
-
trunk/av2.c
r1082 r1155 24 24 #include "dll\fm3str.h" 25 25 #include "dll\arccnrs.h" 26 #include "dll\assoc.h" // ExecAssociation 27 #include "dll\defview.h" // ShowMultimedia 28 #include "dll\inis.h" // StartIniEditor 29 #include "dll\dirs.h" // switch_to 26 30 #include "dll\fm3dll.h" 27 31 -
trunk/dirsize.c
r1055 r1155 24 24 #include "dirsize.h" 25 25 #include "dll\fm3dll.h" 26 #include "dll\dirsize.h" // DirSizeProc 26 27 27 28 MRESULT EXPENTRY DirMainProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2) … … 49 50 50 51 for (x = 2; x < 26; x++) { 51 if ((ulDriveMap & (1L << x)) && !(driveflags[x] & DRIVE_IGNORE)) {52 *dirname = (CHAR) x + 'A';53 WinSendDlgItemMsg(hwnd, DIRSIZE_LISTBOX, LM_INSERTITEM,54 MPFROM2SHORT(LIT_END, 0), MPFROMP(dirname));55 if (first) {56 WinSendDlgItemMsg(hwnd, DIRSIZE_LISTBOX, LM_SELECTITEM,57 MPFROMSHORT(0), MPFROMSHORT(TRUE));58 first = FALSE;59 }60 }52 if ((ulDriveMap & (1L << x)) && !(driveflags[x] & DRIVE_IGNORE)) { 53 *dirname = (CHAR) x + 'A'; 54 WinSendDlgItemMsg(hwnd, DIRSIZE_LISTBOX, LM_INSERTITEM, 55 MPFROM2SHORT(LIT_END, 0), MPFROMP(dirname)); 56 if (first) { 57 WinSendDlgItemMsg(hwnd, DIRSIZE_LISTBOX, LM_SELECTITEM, 58 MPFROMSHORT(0), MPFROMSHORT(TRUE)); 59 first = FALSE; 60 } 61 } 61 62 } 62 63 } … … 73 74 struct 74 75 { 75 ULONG serial;76 CHAR volumelength;77 CHAR volumelabel[CCHMAXPATH];76 ULONG serial; 77 CHAR volumelength; 78 CHAR volumelabel[CCHMAXPATH]; 78 79 } 79 80 volser; … … 90 91 WinSetDlgItemText(hwnd, DIRSIZE_LOCAL, ""); 91 92 WinSendDlgItemMsg(hwnd, DIRSIZE_SLIDER, SLM_SETSLIDERINFO, 92 MPFROM2SHORT(SMA_SLIDERARMPOSITION,93 SMA_INCREMENTVALUE), MPFROMSHORT(0));93 MPFROM2SHORT(SMA_SLIDERARMPOSITION, 94 SMA_INCREMENTVALUE), MPFROMSHORT(0)); 94 95 removable = CheckDrive(toupper(*curdir), FileSystem, &type); 95 96 if (removable != -1) { 96 if (type & DRIVE_ZIPSTREAM)97 WinSetDlgItemText(hwnd, DIRSIZE_LOCAL, "Zipstream drive");98 else if (type & DRIVE_REMOTE)99 WinSetDlgItemText(hwnd, DIRSIZE_LOCAL, "Remote drive");100 else if (type & DRIVE_VIRTUAL)101 WinSetDlgItemText(hwnd, DIRSIZE_LOCAL, "Virtual drive");102 else if (type & DRIVE_RAMDISK)103 WinSetDlgItemText(hwnd, DIRSIZE_LOCAL, "Ramdisk");104 else {105 sprintf(s, "Local drive%s", (removable) ? " (removable)" : "");106 WinSetDlgItemText(hwnd, DIRSIZE_LOCAL, s);107 }108 sprintf(s, "IFS: %s", FileSystem);109 WinSetDlgItemText(hwnd, DIRSIZE_IFS, s);110 memset(&volser, 0, sizeof(volser));111 DosError(FERR_DISABLEHARDERR);112 if (!DosQueryFSInfo(toupper(*curdir) - '@', FSIL_VOLSER,113 &volser, (ULONG) sizeof(volser))) {114 sprintf(s, "Label: %s", volser.volumelabel);115 WinSetDlgItemText(hwnd, DIRSIZE_LABEL, s);116 }117 if (!DosQueryFSInfo(toupper(*curdir) - '@',118 FSIL_ALLOC, &fsa, sizeof(FSALLOCATE))) {119 percentfree = fsa.cUnit ? (USHORT)((fsa.cUnitAvail * 100) / fsa.cUnit) : 0;// 27 May 08 SHL120 if (!percentfree && fsa.cUnitAvail)121 percentfree = 1;122 percentused = 100 - percentfree;123 sprintf(s, "Units free: %lu", fsa.cUnitAvail);124 WinSetDlgItemText(hwnd, DIRSIZE_UNITSFREE, s);125 sprintf(s, "Unit size: %lu x %u = %lu",126 fsa.cSectorUnit,127 fsa.cbSector, fsa.cSectorUnit * fsa.cbSector);128 WinSetDlgItemText(hwnd, DIRSIZE_UNITSIZE, s);129 sprintf(s, "Units used: %lu", fsa.cUnit - fsa.cUnitAvail);130 WinSetDlgItemText(hwnd, DIRSIZE_UNITSUSED, s);131 sprintf(s, "Bytes free: %.0f",132 (float)fsa.cUnitAvail * (fsa.cSectorUnit * fsa.cbSector));133 WinSetDlgItemText(hwnd, DIRSIZE_BYTESFREE, s);134 sprintf(s, "Bytes used: %.0f",135 (float)(fsa.cUnit - fsa.cUnitAvail) *136 (fsa.cSectorUnit * fsa.cbSector));137 WinSetDlgItemText(hwnd, DIRSIZE_BYTESUSED, s);138 sprintf(s, "Percent used: %u%%", percentused);139 WinSetDlgItemText(hwnd, DIRSIZE_PERCENT, s);140 WinSendDlgItemMsg(hwnd, DIRSIZE_SLIDER, SLM_SETSLIDERINFO,141 MPFROM2SHORT(SMA_SLIDERARMPOSITION,142 SMA_INCREMENTVALUE),143 MPFROMSHORT(percentused));144 WinShowWindow(WinWindowFromID(hwnd, DIRSIZE_SLIDER), TRUE);145 }97 if (type & DRIVE_ZIPSTREAM) 98 WinSetDlgItemText(hwnd, DIRSIZE_LOCAL, "Zipstream drive"); 99 else if (type & DRIVE_REMOTE) 100 WinSetDlgItemText(hwnd, DIRSIZE_LOCAL, "Remote drive"); 101 else if (type & DRIVE_VIRTUAL) 102 WinSetDlgItemText(hwnd, DIRSIZE_LOCAL, "Virtual drive"); 103 else if (type & DRIVE_RAMDISK) 104 WinSetDlgItemText(hwnd, DIRSIZE_LOCAL, "Ramdisk"); 105 else { 106 sprintf(s, "Local drive%s", (removable) ? " (removable)" : ""); 107 WinSetDlgItemText(hwnd, DIRSIZE_LOCAL, s); 108 } 109 sprintf(s, "IFS: %s", FileSystem); 110 WinSetDlgItemText(hwnd, DIRSIZE_IFS, s); 111 memset(&volser, 0, sizeof(volser)); 112 DosError(FERR_DISABLEHARDERR); 113 if (!DosQueryFSInfo(toupper(*curdir) - '@', FSIL_VOLSER, 114 &volser, (ULONG) sizeof(volser))) { 115 sprintf(s, "Label: %s", volser.volumelabel); 116 WinSetDlgItemText(hwnd, DIRSIZE_LABEL, s); 117 } 118 if (!DosQueryFSInfo(toupper(*curdir) - '@', 119 FSIL_ALLOC, &fsa, sizeof(FSALLOCATE))) { 120 percentfree = fsa.cUnit ? (USHORT)((fsa.cUnitAvail * 100) / fsa.cUnit) : 0; // 27 May 08 SHL 121 if (!percentfree && fsa.cUnitAvail) 122 percentfree = 1; 123 percentused = 100 - percentfree; 124 sprintf(s, "Units free: %lu", fsa.cUnitAvail); 125 WinSetDlgItemText(hwnd, DIRSIZE_UNITSFREE, s); 126 sprintf(s, "Unit size: %lu x %u = %lu", 127 fsa.cSectorUnit, 128 fsa.cbSector, fsa.cSectorUnit * fsa.cbSector); 129 WinSetDlgItemText(hwnd, DIRSIZE_UNITSIZE, s); 130 sprintf(s, "Units used: %lu", fsa.cUnit - fsa.cUnitAvail); 131 WinSetDlgItemText(hwnd, DIRSIZE_UNITSUSED, s); 132 sprintf(s, "Bytes free: %.0f", 133 (float)fsa.cUnitAvail * (fsa.cSectorUnit * fsa.cbSector)); 134 WinSetDlgItemText(hwnd, DIRSIZE_BYTESFREE, s); 135 sprintf(s, "Bytes used: %.0f", 136 (float)(fsa.cUnit - fsa.cUnitAvail) * 137 (fsa.cSectorUnit * fsa.cbSector)); 138 WinSetDlgItemText(hwnd, DIRSIZE_BYTESUSED, s); 139 sprintf(s, "Percent used: %u%%", percentused); 140 WinSetDlgItemText(hwnd, DIRSIZE_PERCENT, s); 141 WinSendDlgItemMsg(hwnd, DIRSIZE_SLIDER, SLM_SETSLIDERINFO, 142 MPFROM2SHORT(SMA_SLIDERARMPOSITION, 143 SMA_INCREMENTVALUE), 144 MPFROMSHORT(percentused)); 145 WinShowWindow(WinWindowFromID(hwnd, DIRSIZE_SLIDER), TRUE); 146 } 146 147 } 147 148 else { 148 WinSetDlgItemText(hwnd, DIRSIZE_LOCAL, "Drive not ready.");149 WinShowWindow(WinWindowFromID(hwnd, DIRSIZE_SLIDER), FALSE);149 WinSetDlgItemText(hwnd, DIRSIZE_LOCAL, "Drive not ready."); 150 WinShowWindow(WinWindowFromID(hwnd, DIRSIZE_SLIDER), FALSE); 150 151 } 151 152 } … … 157 158 switch (SHORT2FROMMP(mp1)) { 158 159 case LN_ENTER: 159 WinPostMsg(hwnd, WM_COMMAND, MPFROM2SHORT(DID_OK, 0), MPVOID);160 break;160 WinPostMsg(hwnd, WM_COMMAND, MPFROM2SHORT(DID_OK, 0), MPVOID); 161 break; 161 162 case LN_SELECT: 162 {163 SHORT x;164 165 x = (SHORT) WinSendDlgItemMsg(hwnd, DIRSIZE_LISTBOX,166 LM_QUERYSELECTION,167 MPFROMSHORT(LIT_FIRST), MPVOID);168 if (x >= 0) {169 WinSendDlgItemMsg(hwnd, DIRSIZE_LISTBOX,170 LM_QUERYITEMTEXT,171 MPFROM2SHORT(x, sizeof(curdir)),172 MPFROMP(curdir));173 WinPostMsg(hwnd, UM_RESCAN, MPVOID, MPVOID);174 }175 }176 break;163 { 164 SHORT x; 165 166 x = (SHORT) WinSendDlgItemMsg(hwnd, DIRSIZE_LISTBOX, 167 LM_QUERYSELECTION, 168 MPFROMSHORT(LIT_FIRST), MPVOID); 169 if (x >= 0) { 170 WinSendDlgItemMsg(hwnd, DIRSIZE_LISTBOX, 171 LM_QUERYITEMTEXT, 172 MPFROM2SHORT(x, sizeof(curdir)), 173 MPFROMP(curdir)); 174 WinPostMsg(hwnd, UM_RESCAN, MPVOID, MPVOID); 175 } 176 } 177 break; 177 178 } 178 179 break; … … 188 189 case DID_OK: 189 190 if (*curdir) { 190 WinSetWindowPos(hwnd, HWND_TOP, 0, 0, 0, 0, SWP_HIDE);191 WinDlgBox(HWND_DESKTOP, hwnd,192 DirSizeProc, FM3ModHandle, DSZ_FRAME, curdir);193 WinSetWindowPos(hwnd, HWND_TOP, 0, 0, 0, 0, SWP_SHOW);191 WinSetWindowPos(hwnd, HWND_TOP, 0, 0, 0, 0, SWP_HIDE); 192 WinDlgBox(HWND_DESKTOP, hwnd, 193 DirSizeProc, FM3ModHandle, DSZ_FRAME, curdir); 194 WinSetWindowPos(hwnd, HWND_TOP, 0, 0, 0, 0, SWP_SHOW); 194 195 } 195 196 else 196 DosBeep(50, 100);197 DosBeep(50, 100); 197 198 break; 198 199 } 199 200 return 0; 200 } // switch201 } // switch 201 202 return WinDefDlgProc(hwnd, msg, mp1, mp2); 202 203 } 203 204 204 #ifdef NEVER // 05 Jan 08 SHL fixme to be gone?205 #ifdef NEVER // 05 Jan 08 SHL fixme to be gone? 205 206 206 207 VOID APIENTRY deinit(ULONG why) … … 229 230 for (x = 1; x < argc; x++) { 230 231 if (!strchr("/;,`\'", *argv[x]) && 231 !*fullname && (IsRoot(argv[x]) || IsFile(argv[x]) == 0)) {232 !*fullname && (IsRoot(argv[x]) || IsFile(argv[x]) == 0)) { 232 233 if (IsRoot(argv[x])) 233 strcpy(fullname, argv[x]);234 strcpy(fullname, argv[x]); 234 235 else if (DosQueryPathInfo(argv[x], 235 FIL_QUERYFULLNAME,236 fullname, sizeof(fullname)))237 *fullname = 0;236 FIL_QUERYFULLNAME, 237 fullname, sizeof(fullname))) 238 *fullname = 0; 238 239 } 239 240 } … … 248 249 if (hmq) { 249 250 if (InitFM3DLL(hab, argc, argv)) { 250 if (!*fullname)251 rcl = WinDlgBox(HWND_DESKTOP,252 HWND_DESKTOP, DirMainProc, 0, DIRSIZE_FRAME, NULL);253 else254 rcl = WinDlgBox(HWND_DESKTOP,255 HWND_DESKTOP,256 DirSizeProc, FM3ModHandle, DSZ_FRAME, fullname);257 if (rcl == DID_ERROR)258 rcl = WinGetLastError(hab);251 if (!*fullname) 252 rcl = WinDlgBox(HWND_DESKTOP, 253 HWND_DESKTOP, DirMainProc, 0, DIRSIZE_FRAME, NULL); 254 else 255 rcl = WinDlgBox(HWND_DESKTOP, 256 HWND_DESKTOP, 257 DirSizeProc, FM3ModHandle, DSZ_FRAME, fullname); 258 if (rcl == DID_ERROR) 259 rcl = WinGetLastError(hab); 259 260 } 260 261 WinDestroyMsgQueue(hmq); … … 264 265 return 0; 265 266 266 } // main267 } // main -
trunk/dirsize.h
r2 r1155 11 11 #define DIRSIZE_LOCAL 110 12 12 #define DIRSIZE_SLIDER 111 13 -
trunk/dll/flesh.c
r1009 r1155 36 36 #include "errutil.h" // Dos_Error... 37 37 #include "strutil.h" // GetPString 38 #include "flesh.h" 39 #include "valid.h" // IsValidDir 40 #include "misc.h" // LoadLibPath 38 41 #include "fm3dll.h" 39 42 -
trunk/fm4.c
r907 r1155 21 21 #include "dll\tools.h" 22 22 #include "dll\version.h" 23 #include "dll\mainwnd2.h" // StartFM32 23 24 #include "dll\fm3dll.h" 24 25 -
trunk/global.c
r907 r1155 19 19 20 20 #include "dll\fm3dll.h" 21 #include "dll\seeall.h" // StartSeeAll 21 22 #include "dll\fm3str.h" 22 23 … … 38 39 if (hmq) { 39 40 if (InitFM3DLL(hab, argc, argv)) { 40 for (x = 1; x < argc; x++) {41 if (!strchr("/;,`\'", *argv[x]) && !*fullname &&42 (IsRoot(argv[x]) || IsFile(argv[x]) == 0)) {43 if (IsRoot(argv[x]))44 strcpy(fullname, argv[x]);45 else if (DosQueryPathInfo(argv[x],46 FIL_QUERYFULLNAME,47 fullname, sizeof(fullname)))48 *fullname = 0;49 }50 }51 hwndFrame = StartSeeAll(HWND_DESKTOP, TRUE, fullname);52 if (hwndFrame) {53 for (;;) {54 if (!WinGetMsg(hab, &qmsg, (HWND) 0, 0, 0)) {55 if (qmsg.hwnd)56 qmsg.msg = WM_CLOSE;57 else58 break;59 }60 if (hwndBubble &&61 ((qmsg.msg > (WM_BUTTON1DOWN - 1) &&62 qmsg.msg < (WM_BUTTON3DBLCLK + 1)) ||63 (qmsg.msg > (WM_CHORD - 1) &&64 qmsg.msg < (WM_BUTTON3CLICK + 1))) &&65 WinIsWindowVisible(hwndBubble))66 WinShowWindow(hwndBubble, FALSE);67 WinDispatchMsg(hab, &qmsg);68 }69 DosSleep(125L);70 }41 for (x = 1; x < argc; x++) { 42 if (!strchr("/;,`\'", *argv[x]) && !*fullname && 43 (IsRoot(argv[x]) || IsFile(argv[x]) == 0)) { 44 if (IsRoot(argv[x])) 45 strcpy(fullname, argv[x]); 46 else if (DosQueryPathInfo(argv[x], 47 FIL_QUERYFULLNAME, 48 fullname, sizeof(fullname))) 49 *fullname = 0; 50 } 51 } 52 hwndFrame = StartSeeAll(HWND_DESKTOP, TRUE, fullname); 53 if (hwndFrame) { 54 for (;;) { 55 if (!WinGetMsg(hab, &qmsg, (HWND) 0, 0, 0)) { 56 if (qmsg.hwnd) 57 qmsg.msg = WM_CLOSE; 58 else 59 break; 60 } 61 if (hwndBubble && 62 ((qmsg.msg > (WM_BUTTON1DOWN - 1) && 63 qmsg.msg < (WM_BUTTON3DBLCLK + 1)) || 64 (qmsg.msg > (WM_CHORD - 1) && 65 qmsg.msg < (WM_BUTTON3CLICK + 1))) && 66 WinIsWindowVisible(hwndBubble)) 67 WinShowWindow(hwndBubble, FALSE); 68 WinDispatchMsg(hab, &qmsg); 69 } 70 DosSleep(125L); 71 } 71 72 } 72 73 DosSleep(125L); -
trunk/ini.c
r907 r1155 17 17 18 18 #include "dll\fm3dll.h" 19 #include "dll\inis.h" // StartIniEditor 19 20 20 21 int main(int argc, char *argv[]) … … 31 32 if (hmq) { 32 33 if (InitFM3DLL(hab, argc, argv) && 33 ((hwndFrame =34 StartIniEditor(HWND_DESKTOP, argv[1], 0)) != (HWND) 0)) {35 if (hwndHelp)36 WinAssociateHelpInstance(hwndHelp, hwndFrame);37 while (WinGetMsg(hab, &qmsg, (HWND) 0, 0, 0))38 WinDispatchMsg(hab, &qmsg);34 ((hwndFrame = 35 StartIniEditor(HWND_DESKTOP, argv[1], 0)) != (HWND) 0)) { 36 if (hwndHelp) 37 WinAssociateHelpInstance(hwndHelp, hwndFrame); 38 while (WinGetMsg(hab, &qmsg, (HWND) 0, 0, 0)) 39 WinDispatchMsg(hab, &qmsg); 39 40 } 40 41 DosSleep(125L); -
trunk/sysinfo.c
r907 r1155 18 18 #include "dll\fm3dlg.h" 19 19 #include "dll\fm3dll.h" 20 #include "dll\sysinfo.h" // SysInfoDlgProc 20 21 21 22 int main(int argc, char *argv[]) … … 29 30 if (hmq) { 30 31 if (InitFM3DLL(hab, argc, argv)) { 31 WinDlgBox(HWND_DESKTOP, HWND_DESKTOP,32 SysInfoDlgProc, FM3ModHandle, SYS_FRAME, NULL);32 WinDlgBox(HWND_DESKTOP, HWND_DESKTOP, 33 SysInfoDlgProc, FM3ModHandle, SYS_FRAME, NULL); 33 34 } 34 35 WinDestroyMsgQueue(hmq); -
trunk/viewinfs.c
r907 r1155 13 13 ***********************************************************************/ 14 14 15 #define INCL_DOS // DosSleep15 #define INCL_DOS // DosSleep 16 16 #define INCL_WIN 17 17 18 18 #include "dll\fm3dlg.h" 19 19 #include "dll\fm3dll.h" 20 #include "dll\viewinf.h" // ViewInfProc 20 21 21 22 int main(int argc, char *argv[]) … … 29 30 if (hmq) { 30 31 if (InitFM3DLL(hab, argc, argv)) { 31 WinDlgBox(HWND_DESKTOP,32 HWND_DESKTOP,33 ViewInfProc,34 FM3ModHandle,35 VINF_FRAME, ((argc > 1) ? MPFROMP("") : MPVOID));32 WinDlgBox(HWND_DESKTOP, 33 HWND_DESKTOP, 34 ViewInfProc, 35 FM3ModHandle, 36 VINF_FRAME, ((argc > 1) ? MPFROMP("") : MPVOID)); 36 37 } 37 38 DosSleep(250); -
trunk/vtree.c
r907 r1155 20 20 21 21 #include "dll\fm3dll.h" 22 #include "dll\treecnr.h" // StartTreeCnr 22 23 23 24 int main(int argc, char *argv[]) … … 36 37 if (hmq) { 37 38 if (InitFM3DLL(hab, argc, argv)) { 38 for (x = 1; x < argc; x++) {39 if (*argv[x] == '~') {40 startminimized = TRUE;41 break;42 }43 }44 hwndTree = StartTreeCnr(HWND_DESKTOP, 0);45 if (hwndTree) {46 if (hwndHelp)47 WinAssociateHelpInstance(hwndHelp, hwndTree);48 if (!WinRestoreWindowPos("FM/2", "VTreeWindowPos", hwndTree)) {39 for (x = 1; x < argc; x++) { 40 if (*argv[x] == '~') { 41 startminimized = TRUE; 42 break; 43 } 44 } 45 hwndTree = StartTreeCnr(HWND_DESKTOP, 0); 46 if (hwndTree) { 47 if (hwndHelp) 48 WinAssociateHelpInstance(hwndHelp, hwndTree); 49 if (!WinRestoreWindowPos("FM/2", "VTreeWindowPos", hwndTree)) { 49 50 50 SWP swp;51 ULONG adjust;51 SWP swp; 52 ULONG adjust; 52 53 53 adjust = WinQuerySysValue(HWND_DESKTOP, SV_CXICON) * 8L;54 WinQueryTaskSizePos(hab, 0L, &swp);55 swp.cx = min(swp.cx, adjust);56 WinSetWindowPos(hwndTree, HWND_TOP, swp.x, swp.y, swp.cx, swp.cy,57 SWP_SHOW | SWP_MOVE | SWP_SIZE | SWP_ZORDER |58 SWP_ACTIVATE);59 }60 if (startminimized)61 WinSetWindowPos(hwndTree, HWND_TOP, 0, 0, 0, 0, SWP_MINIMIZE);62 else63 WinSetWindowPos(hwndTree, HWND_TOP, 0, 0, 0, 0,64 SWP_SHOW | SWP_ZORDER | SWP_ACTIVATE);65 for (;;) {66 if (!WinGetMsg(hab, &qmsg, (HWND) 0, 0, 0)) {67 if (qmsg.hwnd)68 qmsg.msg = WM_CLOSE;69 else70 break;71 }72 if (hwndBubble &&73 ((qmsg.msg > (WM_BUTTON1DOWN - 1) &&74 qmsg.msg < (WM_BUTTON3DBLCLK + 1)) ||75 (qmsg.msg > (WM_CHORD - 1) &&76 qmsg.msg < (WM_BUTTON3CLICK + 1))) &&77 WinIsWindowVisible(hwndBubble))78 WinShowWindow(hwndBubble, FALSE);79 WinDispatchMsg(hab, &qmsg);80 }81 }54 adjust = WinQuerySysValue(HWND_DESKTOP, SV_CXICON) * 8L; 55 WinQueryTaskSizePos(hab, 0L, &swp); 56 swp.cx = min(swp.cx, adjust); 57 WinSetWindowPos(hwndTree, HWND_TOP, swp.x, swp.y, swp.cx, swp.cy, 58 SWP_SHOW | SWP_MOVE | SWP_SIZE | SWP_ZORDER | 59 SWP_ACTIVATE); 60 } 61 if (startminimized) 62 WinSetWindowPos(hwndTree, HWND_TOP, 0, 0, 0, 0, SWP_MINIMIZE); 63 else 64 WinSetWindowPos(hwndTree, HWND_TOP, 0, 0, 0, 0, 65 SWP_SHOW | SWP_ZORDER | SWP_ACTIVATE); 66 for (;;) { 67 if (!WinGetMsg(hab, &qmsg, (HWND) 0, 0, 0)) { 68 if (qmsg.hwnd) 69 qmsg.msg = WM_CLOSE; 70 else 71 break; 72 } 73 if (hwndBubble && 74 ((qmsg.msg > (WM_BUTTON1DOWN - 1) && 75 qmsg.msg < (WM_BUTTON3DBLCLK + 1)) || 76 (qmsg.msg > (WM_CHORD - 1) && 77 qmsg.msg < (WM_BUTTON3CLICK + 1))) && 78 WinIsWindowVisible(hwndBubble)) 79 WinShowWindow(hwndBubble, FALSE); 80 WinDispatchMsg(hab, &qmsg); 81 } 82 } 82 83 } 83 84 DosSleep(125);
Note:
See TracChangeset
for help on using the changeset viewer.
