unsafe extern "system" fn blank_window_proc(hwnd: HWND, msg: UINT, w: WPARAM, l: LPARAM) -> LRESULT {
    use winapi::um::winuser::{WM_CREATE, WM_CLOSE, SW_HIDE};
    use winapi::um::winuser::{DefWindowProcW, PostMessageW, ShowWindow};

    let handled = match msg {
        WM_CREATE => {
            PostMessageW(hwnd, NWG_INIT, 0, 0);
            true
        },
        WM_CLOSE => {
            ShowWindow(hwnd, SW_HIDE);
            true
        },
        _ => false
    };

    if handled {
        0
    } else {
        DefWindowProcW(hwnd, msg, w, l)
    }
}
/**
    A blank system procedure used when creating new window class. Actual system event handling is done in the subclass procedure `process_events`.
*/
A blank system procedure used when creating new window class. Actual system event handling is done in the subclass procedure `process_events`.
A blank system procedure used when creating new window class . Actual system event handling is done in the subclass procedure ` process_events ` .
unsafe extern "system" fn blank_window_proc(hwnd: HWND, msg: UINT, w: WPARAM, l: LPARAM) -> LRESULT {
    use winapi::um::winuser::{WM_CREATE, WM_CLOSE, SW_HIDE};
    use winapi::um::winuser::{DefWindowProcW, PostMessageW, ShowWindow};
    let handled = match msg {
        WM_CREATE => {
            PostMessageW(hwnd, NWG_INIT, 0, 0);
            true
        },
        WM_CLOSE => {
            ShowWindow(hwnd, SW_HIDE);
            true
        },
        _ => false
    };
    if handled {
        0
    } else {
        DefWindowProcW(hwnd, msg, w, l)
    }
}
unsafe extern " " fn blank_window_proc ( hwnd : HWND , msg : UINT , w : WPARAM , l : LPARAM ) -> LRESULT { use winapi :: um :: winuser :: { WM_CREATE , WM_CLOSE , SW_HIDE } ; use winapi :: um :: winuser :: { DefWindowProcW , PostMessageW , ShowWindow } ; let handled = match msg { WM_CREATE => { PostMessageW ( hwnd , NWG_INIT , 0 , 0 ) ; true } , WM_CLOSE => { ShowWindow ( hwnd , SW_HIDE ) ; true } , _ => false } ; if handled { 0 } else { DefWindowProcW ( hwnd , msg , w , l ) } }
A blank system procedure used when creating new window class.
A blank system procedure used when creating new window class .
hwnd
HWND
msg
UINT
w
WPARAM
l
LPARAM