Changeset 161 for trunk/Lucide


Ignore:
Timestamp:
Nov 19, 2006, 8:03:02 AM (15 years ago)
Author:
Eugene Romanenko
Message:

'New window' menuitem

Location:
trunk/Lucide
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Lucide/BIN/Lucide.lng

    r155 r161  
    77#
    88MENU_DOCUMENT=~Document
     9MENU_NEW_WINDOW=~New window
    910MENU_OPEN=~Open...\tCtrl+O
    1011MENU_SAVE_AS=~Save As...
  • trunk/Lucide/SOURCE/gui/Lucide.rc

    r129 r161  
    2727    SUBMENU "MENU_DOCUMENT", 100
    2828    BEGIN
     29        MENUITEM "MENU_NEW_WINDOW", CM_NEW_WINDOW
    2930        MENUITEM "MENU_OPEN", CM_OPEN
    3031        MENUITEM "MENU_SAVE_AS", CM_SAVEAS
  • trunk/Lucide/SOURCE/gui/Lucide_res.H

    r152 r161  
    6060#define IDA_MAINACCEL   101
    6161
    62 #define CM_OPEN         101
    63 #define CM_SAVEAS       102
    64 #define CM_PRINT        103
    65 #define CM_PLUGINSLIST  104
    66 #define CM_EXIT         105
     62#define CM_NEW_WINDOW   101
     63#define CM_OPEN         102
     64#define CM_SAVEAS       103
     65#define CM_PRINT        104
     66#define CM_PLUGINSLIST  105
     67#define CM_EXIT         106
    6768
    6869#define CM_COPY         201
  • trunk/Lucide/SOURCE/gui/lucide.cpp

    r155 r161  
    119119{
    120120    if ( termination ) {
    121         /* DLL is detaching from process */
     121        // DLL is detaching from process
    122122    } else {
    123         /* DLL is attaching to process */
     123        // DLL is attaching to process
    124124        _hmod = hmod;
    125125    }
     
    703703}
    704704
     705void Lucide::newWindow()
     706{
     707    PROGDETAILS pd;
     708    pd.Length                      = sizeof( PROGDETAILS );
     709    pd.progt.progc                 = PROG_DEFAULT;
     710    pd.progt.fbVisible             = SHE_VISIBLE;
     711    pd.pszTitle                    = NULL;
     712    pd.pszExecutable               = __argv[0];
     713    pd.pszParameters               = NULL;
     714    pd.pszStartupDir               = NULL;
     715    pd.pszIcon                     = NULL;
     716    pd.pszEnvironment              = NULL;
     717    pd.swpInitial.fl               = SWP_ACTIVATE;
     718    pd.swpInitial.cy               = 0;
     719    pd.swpInitial.cx               = 0;
     720    pd.swpInitial.y                = 0;
     721    pd.swpInitial.x                = 0;
     722    pd.swpInitial.hwndInsertBehind = HWND_TOP;
     723    pd.swpInitial.hwnd             = NULLHANDLE;
     724    pd.swpInitial.ulReserved1      = 0;
     725    pd.swpInitial.ulReserved2      = 0;
     726
     727    WinStartApp( NULLHANDLE, &pd, NULL, NULL, 0 );
     728}
     729
    705730static MRESULT EXPENTRY splProc( HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2 )
    706731{
     
    729754            switch ( SHORT1FROMMP(mp1) )
    730755            {
     756                case CM_NEW_WINDOW:
     757                    Lucide::newWindow();
     758                    return (MRESULT)FALSE;
     759
    731760                case CM_OPEN:
    732761                    Lucide::openDocument();
  • trunk/Lucide/SOURCE/gui/lucide.h

    r155 r161  
    8282        static bool showIndex;
    8383       
     84        static void newWindow();
    8485        static void openDocument();
    8586        static void closeDocument();
  • trunk/Lucide/changelog

    r157 r161  
    22  - Pipe commands, see readme for details.
    33  - Writes into EA thumbnail of first page of document.
     4  - 'New window' menuitem.
    45  - PDF plugin: freetype library updated to version 2.2.1.
    56  - Optimized unicode conversion, fixes crash in uconv.dll (closed ticket #97).
Note: See TracChangeset for help on using the changeset viewer.