// Register app for pen windows (if possible)   bPenWin = FALSE;   if ((hPenWin = GetSystemMetrics (SM_PENWINDOWS)) != NULL)
      {
      if ((RegisterPenApp =(LPREGISTERPENAPP) GetProcAddress (hPenWin, "RegisterPenApp")) != NULL)
        {
        (*RegisterPenApp)(RPA_DEFAULT, TRUE);
        bPenWin = TRUE;
        }
      }
请问下 RegisterPenApp的作用是?谢谢!

解决方案 »

  1.   

    RegisterPenApp 很明显,是一个函数指针。
      

  2.   

    RegisterPenApp   1. 0 2.0Notifies the pen system that the application edit controls should be replaced with hedit controls. This function is required only for applications that specify EDIT class (instead of HEDIT class) for control windows with versions of Windows earlier than Windows 95. 
      

  3.   

    谢谢楼上的朋友帮忙解答 ^_^想问下,你是在哪里搜到到的 2楼的说明呢?我在msdn没有找到看解释,应该是在用到 edit控件的时候才会用到吧?而且是要早于win95的版本?但不知道用这个函数指针的作用是:      (*RegisterPenApp)(RPA_DEFAULT, TRUE);这个函数的功能不知道在哪可以找到呢?
      

  4.   


    http://winapi.freetechsecrets.com/penapi/PENAPIRegisterPenApp.htm