Ignore:
Timestamp:
May 3, 2010, 10:34:50 PM (11 years ago)
Author:
Silvan Scherrer
Message:

fixes ticket:190

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Lucide/gui/findDlg.cpp

    r367 r450  
    5050    searchString  = newstrdup( "" );
    5151    caseSensitive = false;
     52    findBack = false;
    5253}
    5354
     
    9192            WinSendDlgItemMsg( hwnd, IDC_FINDFIELD, EM_SETSEL, MPFROM2SHORT( 0, MAXSEARCHLENGTH ), MPVOID );
    9293            WinCheckButton( hwnd, IDC_FINDMATCHCASE, _this->caseSensitive );
     94            WinCheckButton( hwnd, IDC_FINDBACK, _this->findBack );
     95
    9396
    9497            return (MRESULT)FALSE;
     
    105108                        _this->searchString = newstrdup( buf );
    106109                        _this->caseSensitive = WinQueryButtonCheckstate( hwnd, IDC_FINDMATCHCASE );
     110                        _this->findBack = WinQueryButtonCheckstate( hwnd, IDC_FINDBACK );
    107111                        WinDismissDlg( hwnd, DID_OK );
    108112                    }
     
    176180        }
    177181
     182        case WM_CONTROL:
     183        // @todo highlight the text in the spinbutton (should work but looks like its not)
     184        WinSendDlgItemMsg( hwnd, IDC_PAGE, EM_SETSEL,
     185                                      MPFROM2SHORT(0, 256), NULL);
     186        return (MRESULT)FALSE;
     187
    178188        case WM_COMMAND:
    179189            switch (SHORT1FROMMP(mp1))
Note: See TracChangeset for help on using the changeset viewer.