none
WNDCLASS中lpfnWndProc参数的详细说明 RRS feed

  • 问题

  • WNDCLASS中lpfnWndProc参数的详细说明在vs2008的说明文档中没有找到,不知道哪里比较有详细的说明?
    2011年4月23日 4:56

答案

  • WindowProc Function


    The WindowProc function is an application-defined function that processes messages sent to a window. The WNDPROC type defines a pointer to this callback function. WindowProc is a placeholder for the application-defined function name.

    Syntax

    LRESULT CALLBACK WindowProc(      

        HWND hwnd,     UINT uMsg,     WPARAM wParam,     LPARAM lParam );

    Parameters

    hwnd
    [in] Handle to the window.
    uMsg
    [in] Specifies the message.
    wParam
    [in] Specifies additional message information. The contents of this parameter depend on the value of the uMsg parameter.
    lParam
    [in] Specifies additional message information. The contents of this parameter depend on the value of the uMsg parameter.

    Return Value

    The return value is the result of the message processing and depends on the message sent.

    Please refer: http://msdn.microsoft.com/zh-cn/library/ms633577.aspx


    Visual C++ enthusiast, like network programming and driver development. At present is being engaged in the WinCE/Windows Mobile platform embedded development.

    2011年4月25日 0:02
    版主

全部回复

  • WindowProc Function


    The WindowProc function is an application-defined function that processes messages sent to a window. The WNDPROC type defines a pointer to this callback function. WindowProc is a placeholder for the application-defined function name.

    Syntax

    LRESULT CALLBACK WindowProc(      

        HWND hwnd,     UINT uMsg,     WPARAM wParam,     LPARAM lParam );

    Parameters

    hwnd
    [in] Handle to the window.
    uMsg
    [in] Specifies the message.
    wParam
    [in] Specifies additional message information. The contents of this parameter depend on the value of the uMsg parameter.
    lParam
    [in] Specifies additional message information. The contents of this parameter depend on the value of the uMsg parameter.

    Return Value

    The return value is the result of the message processing and depends on the message sent.

    Please refer: http://msdn.microsoft.com/zh-cn/library/ms633577.aspx


    Visual C++ enthusiast, like network programming and driver development. At present is being engaged in the WinCE/Windows Mobile platform embedded development.

    2011年4月25日 0:02
    版主
  • 请问二楼,你这个函数在msdn的那一部分找到的 我的意思是msdn.microsoft.com里面资料繁多 你是在网站的那一部分找到这个函数的定义的,多谢
    2012年2月18日 16:03