如题...................................
希望能给出具体代码 急着实际应用上的问题

解决方案 »

  1.   

    char szEdit[MAX_PATH];
    GetClassName(hWnd, szEdit);
    if (stricmp(szEdit, "EDIT") == 0)
      

  2.   

    少了一个参数
    char szEdit[MAX_PATH];
    GetClassName(hWnd, szEdit, MAX_PATH);
    if (stricmp(szEdit, "EDIT") == 0)  
      

  3.   

    The GetClassName function retrieves the name of the class to which the specified window belongs. int GetClassName(
      HWND hWnd,           // handle of window
      LPTSTR lpClassName,  // address of buffer for class name
      int nMaxCount        // size of buffer, in characters
    );
      

  4.   

    char szType[MAX_PATH];if ( !GetClassName(hwnd, szType, MAX_PATH) )
    {
    AfxMessageBox("error"!);
    return;
    }if( strcmp(szType, "Edit") == 0 )
    {
    ....
    }