Changeset 104 for trunk/classes/mm-progs/MMPlayer/customprocs.c
- Timestamp:
- Oct 2, 2023, 11:34:35 PM (23 months ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:mergeinfo
set to
/branches/v2.9 merged eligible /branches/v2.9_Lars merged eligible
-
Property svn:mergeinfo
set to
-
trunk/classes/mm-progs/MMPlayer/customprocs.c
r2 r104 21 21 * If you need another license for your project/product (commercial, 22 22 * noncommercial, whatever) contact me at 23 * 23 * 24 24 * http://www.os2world.com/cdwriting 25 25 * http://www.geocities.com/SiliconValley/Sector/5785/ … … 43 43 #include <stdio.h> 44 44 #include <stdlib.h> 45 #include <string.h> 45 46 46 47 … … 70 71 { 71 72 PDRAGINFO pdi=PVOIDFROMMP(mp1); 72 73 73 74 return handleDrag0ver( pdi, WinQueryWindow(hwnd, QW_PARENT)); 74 75 } … … 76 77 { 77 78 PDRAGINFO pdi=PVOIDFROMMP(mp1); 78 79 79 80 return handleDrop( pdi, WinQueryWindow(hwnd, QW_PARENT)); 80 81 } … … 104 105 if(swp.fl & SWP_MINIMIZE) 105 106 break; 106 107 107 108 hps=WinBeginPaint(hwnd, NULLHANDLE, NULLHANDLE); 108 109 WinQueryWindowRect(hwnd, &rcl); 109 110 WinDrawBitmap(hps, allBMPs[MAIN_BMP_IDX].hbm, 110 NULLHANDLE, 111 NULLHANDLE, 111 112 (PPOINTL)&rcl, 112 113 0, 0, 113 DBM_IMAGEATTRS); 114 DBM_IMAGEATTRS); 114 115 WinEndPaint(hps); 115 116 return MRFALSE; … … 183 184 184 185 WinDrawBitmap(ubPtr->hps, ci.hbmSource, 185 &ci.rclSource, 186 &ci.rclSource, 186 187 (PPOINTL)&rcl, 187 188 0, 0, … … 211 212 if(ulShowFeedback==2) 212 213 return 1; 213 214 214 215 switch(usControl) 215 216 { … … 237 238 hps=WinGetPS(hwnd); 238 239 WinDrawBitmap(hps, ci.hbmSource, 239 &ci.rclSource, 240 &ci.rclSource, 240 241 (PPOINTL)&rcl, 241 242 0, 0, … … 255 256 256 257 switch (msg) 257 { 258 { 258 259 #if 0 259 260 /* Drag and drop of audio files */ … … 330 331 USHORT usWidth=WinQueryWindowUShort(hwnd, SLIDERARMWIDTH); 331 332 332 if(x<=lPos+usWidth+SLOFFSET && x>=lPos+SLOFFSET && 333 if(x<=lPos+usWidth+SLOFFSET && x>=lPos+SLOFFSET && 333 334 y<=WinQueryWindowUShort(hwnd, SLIDERY)+WinQueryWindowUShort(hwnd, SLIDERCY) 334 335 && y>=WinQueryWindowUShort(hwnd, SLIDERY)) { … … 346 347 if(SHORT1FROMMP(mp2)) { 347 348 hps=WinGetPS(hwnd); 348 WinQueryWindowRect(hwnd, &rcl); 349 WinQueryWindowRect(hwnd, &rcl); 349 350 GpiSetLineType(hps, LINETYPE_DOT); 350 351 ptl.x=rcl.xLeft; … … 369 370 if(WinQueryFocus(HWND_DESKTOP)==hwnd) { 370 371 if(SHORT2FROMMP(mp2)==VK_TAB && (SHORT1FROMMP(mp1) & KC_VIRTUALKEY)) 371 if(SHORT1FROMMP(mp1) & (KC_KEYUP|KC_PREVDOWN)) 372 if(SHORT1FROMMP(mp1) & (KC_KEYUP|KC_PREVDOWN)) 372 373 return (MRESULT)TRUE; 373 374 … … 486 487 USHORT usWidth=WinQueryWindowUShort(hwnd, SLIDERARMWIDTH); 487 488 488 if(x<=lPos+usWidth+SLOFFSET && x>=lPos+SLOFFSET && 489 if(x<=lPos+usWidth+SLOFFSET && x>=lPos+SLOFFSET && 489 490 y<=WinQueryWindowUShort(hwnd, SLIDERY)+WinQueryWindowUShort(hwnd, SLIDERCY) 490 491 && y>=WinQueryWindowUShort(hwnd, SLIDERY)){ … … 522 523 USHORT usWidth=WinQueryWindowUShort(hwnd, SLIDERARMWIDTH); 523 524 524 525 525 526 lTemp=lPos; 526 527 527 528 rcl.xLeft=WinQueryWindowULong(hwnd, SLIDERX); 528 529 rcl.yBottom=WinQueryWindowULong(hwnd, SLIDERY); … … 624 625 LONG lPos=WinQueryWindowULong(hwnd, SLIDERARMPOS); 625 626 USHORT usWidth=WinQueryWindowUShort(hwnd, SLIDERARMWIDTH); 626 if(x<=lPos+usWidth+SLOFFSET && x>=lPos+SLOFFSET && 627 if(x<=lPos+usWidth+SLOFFSET && x>=lPos+SLOFFSET && 627 628 y<=WinQueryWindowUShort(hwnd, SLIDERY)+WinQueryWindowUShort(hwnd, SLIDERCY) 628 629 && y>=WinQueryWindowUShort(hwnd, SLIDERY)) { … … 689 690 hps=WinBeginPaint(hwnd, NULLHANDLE, NULLHANDLE); 690 691 rcl3=rcl=rcl2; 691 /* Arm pos */ 692 /* Arm pos */ 692 693 rcl2.xLeft+=lPos; 693 /* Arm size */ 694 /* Arm size */ 694 695 rcl2.xRight=rcl2.xLeft+usWidth; 695 696 696 697 /* Shaft */ 697 698 /* Left part */ … … 742 743 if(!rc) 743 744 { 744 WinFillRect(hps,&rcl2, CLR_PALEGRAY); 745 WinFillRect(hps,&rcl2, CLR_PALEGRAY); 745 746 WinDrawBorder(hps, &rcl2, 2, 2, 0, 0 ,0x0400); 746 747 } … … 779 780 return (MRESULT)FALSE; 780 781 } 781 782 782 783 switch(poi->idItem) 783 784 { … … 786 787 //DosBeep(5000, 50); 787 788 WinDrawBitmap(poi->hps, ciArm.hbmSource, 788 &ciArm.rclSource, 789 &ciArm.rclSource, 789 790 (PPOINTL)&poi->rclItem, 790 791 0, 0, … … 796 797 WinDrawBitmap(poi->hps, 797 798 ci.hbmSource, 798 &ci.rclSource, 799 &ci.rclSource, 799 800 (PPOINTL)&poi->rclItem, 800 801 0, 0, … … 815 816 if(!WinDrawBitmap(poi->hps, ci.hbmSource, 816 817 &rcl, 817 //&ci.rclSource, 818 //&ci.rclSource, 818 819 (PPOINTL)&poi->rclItem, 819 820 0, 0, … … 863 864 char text[100]; 864 865 CONTROLINFO ci; 865 866 866 867 ci=ciControls[CTRLIDX_PLAYTIME];//ciVolSliderArm; 867 868 868 869 hps=WinBeginPaint(hwnd, NULLHANDLE, NULL); 869 870 if(WinQueryWindowText(hwnd, sizeof(text), text)) … … 871 872 POINTL ptl= {0}; 872 873 WinDrawBitmap(hps, ci.hbmSource, 873 &ci.rclSource, 874 &ci.rclSource, 874 875 &ptl, 875 876 0, 0,
Note:
See TracChangeset
for help on using the changeset viewer.