background image

             Panorama 系统程序开发规范之二

1.匈牙利命名规则

   

     

变动 前缀

类型

        a       Array                                                   
        b       Boolean                                                 
        by      Byte                                                    
        c       Char                           //

                    

有符号型字符

        cb      Char Byte                       //

      

无符号型字符(没多大用处)

        cr      ColorRef                        //

                      

颜色参考值

        cx,cy   Length of x,y (ShortInt)            //

                  

坐标差(长度)

        dw      Double Word                                                    
        fn      Function                                                         
        h       Handle                                                          
        i       Integer                                                           
        m_      Member of a class                                                 
        n       Short Integer                                                     
        np      Near Pointer                                                      
        p       Pointer                          lp      Long Pointer                                                      
×(str)   s       String                                                       
        sz      String with Zero End              //以字符'\0'

          

结尾的字符串

        tm      Text                           //

                        

文本内容

        w       Word                                                          
        x,y     Coordinate                      //

                            

坐标