msdn上找不到哇,帮帮忙,解释一下

解决方案 »

  1.   

    When a window is dynamically subclassed, windows messages will route through the CWnd’s message map and call message handlers in the CWnd’s class first. Messages that are passed to the base class will be passed to the default message handler in the window.
      

  2.   

    用你自己的Window Proc来替换标准窗口的Window Proc,他允许你改变以存在窗口的行为,通常是作用于Control上,通过插入一个消息过滤来过滤窗口的消息。假如你有一个对话框上面有一个输入框,你要他只接受非数字的字符,你可以通过捕获编辑框的WM_CHAR消息,丢弃那些表明有数字输入的消息
    以上翻译于MSDN
      

  3.   

    在MSDN中查找Safe Subclassing in Win32
      

  4.   

    在Win32编程时对一个已有的窗口进行子类化我已经知道了,用SetWindowLong再加上一个CallBack函数;但是在MFC编程时如何子类化?具体步骤是什么?
      

  5.   

    好象是什么presubclass(),我也不是很清楚,我也很想知道
      

  6.   

    举个例子,SubClassDlgItem(IDC_Edit1,this,NULL);就是将编辑框做为对话框的一个子类了,这样对话框的消息就可以被编辑框接收到了
      

  7.   

    在MFC编程时用子类化需要派生,那么是不是一个类只要派生了类并在派生类中处理了消息就可以叫做子类化?为什么有的例子重载了PreSubClass()函数?