protected  override  void  WndProc(ref  Message  m  )  
                       {  
                                   if  (m.WParam.ToInt32()==  16#83#;    )      
                                   {  
                                               m.Result  =  new  IntPtr(0);                              OnNcCalcSize()                        
                                   }  
                                   else  
                                               base.WndProc(ref  m);  //  ...let  Form  take  care  of  this  message  (normally)  
                       }  
 
http://www.cs.uofs.edu/~beidler/Ada/win32/win32-winuser.html

解决方案 »

  1.   

    dotNet的MFC帮助中提到:
    typedef struct tagNCCALCSIZE_PARAMS {
       RECT rgrc[3];
       PWINDOWPOS lppos;
    } NCCALCSIZE_PARAMS;
    我现在是要用VB.Net或者C#来写程序,最重要的问题是不知道参数里面的RECT rgrc[3]该如何传递(提示无法序列化)
    请帮忙!
      

  2.   

    一样,值都是一样的都可以用windows消息是一样的嘛给个例子你吧http://www.csdn.net/develop/read_article.asp?id=15598
      

  3.   

    这类问题,你可以象这里的TheAres版主发消息,他是这类问题的高手.
      

  4.   

    先谢过yarshray斑竹。
    可是我现在还是搞不清楚,RECT数组如何传递到API中去?我实验了,但是总是失败……
    请帮忙搞定好吗?非常感谢!
      

  5.   

    [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef =typeof(NameSpace.TypeName,SizeConst = 32)] 
    参考封送格式ms-help://MS.VSCC/MS.MSDNVS.2052/cpref/html/frlrfsystemruntimeinteropservicesmarshalasattributememberstopic.htm
      

  6.   

    http://www.vckbase.com/document/viewdoc.asp?id=414