窗口过程函数可以是类的保护的、静态成员函数吗?
沙尘暗影 2013-07-01 09:51:08 class CWnd
{
protected:
static LRESULT CALLBACK CWnd::g_WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);
//……
};
LRESULT CALLBACK CWnd::g_WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
//……
}
我前不久得到一份程序,能编译运行。我发现在注册窗口类的时候,窗口过程函数是CWnd的g_WndProc,这个成员函数是保护的,外界怎么调动它?