unsafe fn init(current_handle: HWND, tab_view_handle: HWND, index: usize) {
        use winapi::um::winuser::GWL_USERDATA;

        // Save the index of the tab in the window data
        wh::set_window_long(current_handle, GWL_USERDATA, index);

        // Resize the tabs so that they match the tab view size and hide all children tabs
        let (w, h) = wh::get_window_size(tab_view_handle);
        let width = w - 11;
        let height = h - 33;

        // Resize the tab to match the tab view
        wh::set_window_size(current_handle, width, height, false);

        // Move the tab under the headers
        wh::set_window_position(current_handle, 5, 25);

        // Make the current tab visible
        if index == 1 {
            wh::set_window_visibility(current_handle, true);
        }
    }
/// Set and initialize a tab as active
Set and initialize a tab as active
Set and initialize a tab as active
unsafe fn init(current_handle: HWND, tab_view_handle: HWND, index: usize) {
        use winapi::um::winuser::GWL_USERDATA;
        // Save the index of the tab in the window data
        wh::set_window_long(current_handle, GWL_USERDATA, index);
        // Resize the tabs so that they match the tab view size and hide all children tabs
        let (w, h) = wh::get_window_size(tab_view_handle);
        let width = w - 11;
        let height = h - 33;
        // Resize the tab to match the tab view
        wh::set_window_size(current_handle, width, height, false);
        // Move the tab under the headers
        wh::set_window_position(current_handle, 5, 25);
        // Make the current tab visible
        if index == 1 {
            wh::set_window_visibility(current_handle, true);
        }
    }
unsafe fn init ( current_handle : HWND , tab_view_handle : HWND , index : usize ) { use winapi :: um :: winuser :: GWL_USERDATA ; // Save the index of the tab in the window data wh :: set_window_long ( current_handle , GWL_USERDATA , index ) ; // Resize the tabs so that they match the tab view size and hide all children tabs let ( w , h ) = wh :: get_window_size ( tab_view_handle ) ; let width = w - 11 ; let height = h - 33 ; // Resize the tab to match the tab view wh :: set_window_size ( current_handle , width , height , false ) ; // Move the tab under the headers wh :: set_window_position ( current_handle , 5 , 25 ) ; // Make the current tab visible if index == 1 { wh :: set_window_visibility ( current_handle , true ) ; } }
Set and initialize a tab as active
Set and initialize a tab as active
current_handle
HWND
tab_view_handle
HWND
index
usize