//user can pass a dlg_proc to override the default DLGPROC of CDialogImpl,and take over every msg your self

user can pass a dlg_proc to override the default DLGPROC of CDialogImpl,and take over every msg your self
user can pass a dlg_proc to override the default DLGPROC of CDialogImpl and take over every msg your self
pub fn new(idd: WORD) -> Dialog<T> {
        Dialog {
            inner: CWindow::new(NULL_HWND),
            thk: thunk::get_thunk(),
            idd: idd,
            state: 0,
            modal: false,
            root: 0 as *mut T,
            bin_search_cnt:0,
            handlers:vec![Handler::new(0xFFFF,0xFFFF, 0xFFFF , 0xFFFF, |_,_|{})],   //put a sentinel in the vec
        }
    }
pub fn new ( idd : WORD ) -> Dialog < T > { Dialog { inner : CWindow :: new ( NULL_HWND ) , thk : thunk :: get_thunk ( ) , idd : idd , state : 0 , modal : false , root : 0 as * mut T , bin_search_cnt : 0 , handlers : vec ! [ Handler new ( 0xFFFF 0xFFFF 0xFFFF 0xFFFF { } ) ] , //put a sentinel in the vec
 } }
user can pass a dlg_proc to override the default DLGPROC of CDialogImpl,and take over every msg your self
user can pass a dlg_proc to override the default DLGPROC of CDialogImpl and take over every msg your self
idd
WORD