Changeset 697


Ignore:
Timestamp:
01/22/09 15:01:46 (11 years ago)
Author:
kavika
Message:

Small tweak to EditHilight? and DdxEx?.hpp.

Location:
trunk/src
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/AddTorrentDialog.hpp

    r614 r697  
    2323        public ATL::CDialogImpl<AddTorrentDialog>, 
    2424        public ATL::CAutoSizeWindow<AddTorrentDialog, true>, 
    25     public CWinDataExchangeEx<AddTorrentDialog>, 
     25    public WTLx::WinDataExchangeEx<AddTorrentDialog>, 
    2626        private hal::IniBase<AddTorrentDialog> 
    2727{ 
  • trunk/src/ConfigOptions.hpp

    r641 r697  
    213213    public WTL::CPropertyPageImpl<BitTorrentOptions>, 
    214214        public ATL::CAutoSizeWindow<BitTorrentOptions, false>, 
    215     public CWinDataExchangeEx<BitTorrentOptions> 
     215    public WTLx::WinDataExchangeEx<BitTorrentOptions> 
    216216{ 
    217217        typedef BitTorrentOptions thisClass; 
     
    330330    public WTL::CPropertyPageImpl<PortOptions>, 
    331331        public ATL::CAutoSizeWindow<PortOptions, false>, 
    332     public CWinDataExchangeEx<PortOptions> 
     332    public WTLx::WinDataExchangeEx<PortOptions> 
    333333{ 
    334334        typedef PortOptions thisClass; 
     
    563563class ProxyOptions : 
    564564    public WTL::CPropertyPageImpl<ProxyOptions>, 
    565     public CWinDataExchangeEx<ProxyOptions> 
     565    public WTLx::WinDataExchangeEx<ProxyOptions> 
    566566{ 
    567567public: 
     
    650650    public WTL::CPropertyPageImpl<SecurityOptions>, 
    651651        public ATL::CAutoSizeWindow<SecurityOptions, false>, 
    652     public CWinDataExchangeEx<SecurityOptions> 
     652    public WTLx::WinDataExchangeEx<SecurityOptions> 
    653653{ 
    654654        typedef SecurityOptions thisClass; 
     
    812812    public WTL::CPropertyPageImpl<GlobalOptions>, 
    813813        public ATL::CAutoSizeWindow<GlobalOptions, false>, 
    814     public CWinDataExchangeEx<GlobalOptions> 
     814    public WTLx::WinDataExchangeEx<GlobalOptions> 
    815815{ 
    816816        typedef GlobalOptions thisClass; 
     
    949949    public WTL::CPropertyPageImpl<TorrentsOptions>, 
    950950        public ATL::CAutoSizeWindow<TorrentsOptions, false>, 
    951     public CWinDataExchangeEx<TorrentsOptions> 
     951    public WTLx::WinDataExchangeEx<TorrentsOptions> 
    952952{ 
    953953        typedef TorrentsOptions thisClass; 
  • trunk/src/HaliteDialog.hpp

    r659 r697  
    3232        public WTL::CAeroDialogImpl<HaliteDialog>, 
    3333        public ATL::CAutoSizeWindow<HaliteDialog, false>, 
    34         public CWinDataExchangeEx<HaliteDialog>, 
     34        public WTLx::WinDataExchangeEx<HaliteDialog>, 
    3535        public CHaliteDialogBase<HaliteDialog>, 
    3636        private boost::noncopyable 
  • trunk/src/HaliteListViewDlg.hpp

    r495 r697  
    2525        public ATL::CDialogImpl<HaliteSaveAndMoveToDlg>, 
    2626        public ATL::CAutoSizeWindow<HaliteSaveAndMoveToDlg, true>, 
    27         public CWinDataExchangeEx<HaliteSaveAndMoveToDlg> 
     27        public WTLx::WinDataExchangeEx<HaliteSaveAndMoveToDlg> 
    2828{ 
    2929public: 
  • trunk/src/NewTorrentDialog.hpp

    r512 r697  
    9999class DetailsSheet : 
    100100        public WTL::CPropertyPageImpl<DetailsSheet>, 
    101         public CWinDataExchangeEx<DetailsSheet>, 
     101        public WTLx::WinDataExchangeEx<DetailsSheet>, 
    102102        public ATL::CAutoSizeWindow<DetailsSheet, false> 
    103103{ 
  • trunk/src/NewTorrentPeers.hpp

    r510 r697  
    4343        public WTLx::GenericAddDialog<NewTorrent_PeersAddDialog, HAL_PEEREDIT>, 
    4444        public WTL::CDialogResize<NewTorrent_PeersAddDialog>, 
    45         public CWinDataExchangeEx<NewTorrent_PeersAddDialog> 
     45        public WTLx::WinDataExchangeEx<NewTorrent_PeersAddDialog> 
    4646{ 
    4747public: 
  • trunk/src/NewTorrentTracker.hpp

    r513 r697  
    3737        public WTLx::GenericAddDialog<NewTorrent_TrackerAddDialog, HAL_TRACKEDIT>, 
    3838        public WTL::CDialogResize<NewTorrent_TrackerAddDialog>, 
    39         public CWinDataExchangeEx<NewTorrent_TrackerAddDialog> 
     39        public WTLx::WinDataExchangeEx<NewTorrent_TrackerAddDialog> 
    4040{ 
    4141public: 
  • trunk/src/WTLx/DdxEx.hpp

    r478 r697  
    99#define HAL_INF                                                 40203 
    1010 
    11 #include <boost/type_traits.hpp> 
    1211#include <atlddx.h> 
    1312 
     
    4948                        if(!DDX_WTLx_WString(controlObj, str, bSaveAndValidate)) \ 
    5049                                return FALSE; \ 
    51                          
     50 
     51namespace WTLx 
     52{ 
     53 
    5254template <class T> 
    53 class CWinDataExchangeEx : public WTL::CWinDataExchange<T> 
     55class WinDataExchangeEx : public WTL::CWinDataExchange<T> 
    5456{ 
    5557public:  
     
    7476                { 
    7577                        std::vector<wchar_t> buffer(max_len); 
    76                         size_t len = pT->GetDlgItemText(id, &buffer[0], max_len); 
     78                        size_t len = pT->GetDlgItemText(id, &buffer[0], buffer.size()); 
    7779                        str.assign(buffer.begin(), buffer.begin()+len); 
    7880                } 
     
    157159        }  
    158160}; 
     161 
     162}; 
  • trunk/src/advtabs/Debug.hpp

    r508 r697  
    205205        public WTL::CDialogResize<AdvDebugDialog>, 
    206206        public CHaliteDialogBase<AdvDebugDialog>, 
    207         public CWinDataExchangeEx<AdvDebugDialog>, 
     207        public WTLx::WinDataExchangeEx<AdvDebugDialog>, 
    208208        private boost::noncopyable 
    209209{ 
  • trunk/src/advtabs/Files.hpp

    r665 r697  
    343343        public WTL::CDialogResize<AdvFilesDialog>, 
    344344        public CHaliteDialogBase<AdvFilesDialog>, 
    345         public CWinDataExchangeEx<AdvFilesDialog>, 
     345        public WTLx::WinDataExchangeEx<AdvFilesDialog>, 
    346346        public hal::IniBase<AdvFilesDialog>, 
    347347        private boost::noncopyable 
  • trunk/src/advtabs/Torrent.hpp

    r507 r697  
    4747        public ATL::CAutoSizeWindow<AdvTorrentDialog, false>, 
    4848        public CHaliteDialogBase<AdvTorrentDialog>, 
    49         public CWinDataExchangeEx<AdvTorrentDialog> 
     49        public WTLx::WinDataExchangeEx<AdvTorrentDialog> 
    5050{ 
    5151protected: 
  • trunk/src/advtabs/Tracker.hpp

    r507 r697  
    3030        public ATL::CAutoSizeWindow<AdvTrackerDialog, false>, 
    3131        public CHaliteDialogBase<AdvTrackerDialog>, 
    32         public CWinDataExchangeEx<AdvTrackerDialog> 
     32        public WTLx::WinDataExchangeEx<AdvTrackerDialog> 
    3333{ 
    3434protected: 
  • trunk/src/advtabs/TrackerAddDialog.hpp

    r495 r697  
    2121        public WTLx::GenericAddDialog<TrackerAddDialog, HAL_TRACKEDIT>, 
    2222        public WTL::CDialogResize<TrackerAddDialog>, 
    23         public CWinDataExchangeEx<TrackerAddDialog> 
     23        public WTLx::WinDataExchangeEx<TrackerAddDialog> 
    2424{ 
    2525public: 
Note: See TracChangeset for help on using the changeset viewer.