Changeset 152
- Timestamp:
- Nov 6, 2006, 6:03:44 PM (14 years ago)
- Location:
- trunk/Lucide
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Lucide/SOURCE/gui/Lucide_res.H
r129 r152 95 95 #define CM_PRODINFO 601 96 96 97 // No menuitems for this commands 98 #define CM_MINIMIZE 701 99 #define CM_TOFULLSCREEN 702 100 97 101 #define TBID_PAGENUM 1 98 102 #define TBID_OFPAGES 2 -
trunk/Lucide/SOURCE/gui/lucide.cpp
r138 r152 75 75 HWND createToolbar( HWND hwnd ); 76 76 void AboutBox( HWND hWndFrame ); 77 void initPipeMon( HWND hWndFrame ); 78 void unInitPipeMon(); 77 79 78 80 HAB hab = NULLHANDLE; … … 614 616 } 615 617 618 void Lucide::cmdMinimize() 619 { 620 if ( isFullscreen ) { 621 toggleFullscreen(); 622 } 623 WinSetWindowPos( hWndFrame, HWND_TOP, 0, 0, 0, 0, SWP_MINIMIZE ); 624 } 625 626 void Lucide::cmdSwitchToFullscreen() 627 { 628 if ( !isFullscreen ) 629 { 630 SWP pos = {0}; 631 WinQueryWindowPos( hWndFrame, &pos ); 632 633 if ( pos.fl & SWP_MINIMIZE ) { 634 WinSetWindowPos( hWndFrame, HWND_TOP, 0, 0, 0, 0, 635 SWP_SHOW | SWP_ACTIVATE | SWP_RESTORE | SWP_ZORDER ); 636 } 637 toggleFullscreen(); 638 } 639 } 640 616 641 static MRESULT EXPENTRY splProc( HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2 ) 617 642 { … … 807 832 return (MRESULT)FALSE; 808 833 834 case CM_MINIMIZE: 835 Lucide::cmdMinimize(); 836 return (MRESULT)FALSE; 837 838 case CM_TOFULLSCREEN: 839 Lucide::cmdSwitchToFullscreen(); 840 return (MRESULT)FALSE; 809 841 } 810 842 } … … 902 934 903 935 Lucide::checkNavpane(); 936 initPipeMon( hWndFrame ); 904 937 905 938 // Messsage loop … … 930 963 delete title; 931 964 delete settings; 965 unInitPipeMon(); 932 966 933 967 WinDestroyMsgQueue( hmq ); -
trunk/Lucide/SOURCE/gui/lucide.h
r122 r152 94 94 static void toggleFullscreen(); 95 95 static void focusDocview(); 96 static void cmdMinimize(); 97 static void cmdSwitchToFullscreen(); 96 98 }; 97 99 -
trunk/Lucide/SOURCE/gui/makefile
r150 r152 37 37 fontsInfoDlg.obj docInfoDlg.obj findDlg.obj progressDlg.obj \ 38 38 aboutDlg.obj settingsDlg.obj lusettings.obj printDlg.obj \ 39 print.obj stbrowser.obj 39 print.obj stbrowser.obj pipemon.obj 40 40 41 41 lucide.dll: $(OBJS) lucide.res … … 69 69 file $(OBJDIR)\messages.obj 70 70 file $(OBJDIR)\stbrowser.obj 71 file $(OBJDIR)\pipemon.obj 71 72 name $(EXEDIR)\lucide 72 73 lib ..\plugins\ludoc\ludoc … … 123 124 intern.obj: intern.cpp 124 125 messages.obj: messages.cpp 126 pipemon.obj: pipemon.cpp 125 127 linklab.obj: linklab.c 126 128 wwbtn.obj: wwbtn.c -
trunk/Lucide/changelog
r151 r152 1 1 Beta-5: 2 - Pipe commands, see readme for details. 2 3 - PDF plugin: freetype library updated to version 2.2.1. 3 4 - Updated NLS-files: Spanish, German... -
trunk/Lucide/readme
r108 r152 38 38 39 39 40 :: Pipe commands :: 41 42 First instance of Lucide will create named pipe \PIPE\LUCIDE. You may 43 send following commands to pipe: 44 45 $prev - will switch to previous page 46 $next - will switch to next page 47 $switchfullscreen - will switch to fullscreen (even if minimized) 48 $minimize - will mimimize Lucide (even if fullscreen) 49 50 This may be useful for presentations with remote control. 51 52 40 53 :: License :: 41 54
Note: See TracChangeset
for help on using the changeset viewer.