WinAPI中的struct一般有一个struct point不知在那些地方有用?
谢谢!
(我很菜,也许这问题是废话!)

解决方案 »

  1.   

    是这个吗?这个是用来表示点的位置的。
    POINT
    The POINT structure defines the x- and y- coordinates of a point. typedef struct tagPOINT { 
        LONG x; 
        LONG y; 
    } POINT; 
     
    Members

    Specifies the x-coordinate of the point. 

    Specifies the y-coordinate of the point. 
      

  2.   

    象这样的不知定义一个*PTEXTMETRIC在那有用?(没写几个程序不懂)
    typedef struct tagTEXTMETRIC { 
      LONG tmHeight; 
      LONG tmAscent; 
      LONG tmDescent; 
      LONG tmInternalLeading; 
      LONG tmExternalLeading; 
      LONG tmAveCharWidth; 
      LONG tmMaxCharWidth; 
      LONG tmWeight; 
      LONG tmOverhang; 
      LONG tmDigitizedAspectX; 
      LONG tmDigitizedAspectY; 
      TCHAR tmFirstChar; 
      TCHAR tmLastChar; 
      TCHAR tmDefaultChar; 
      TCHAR tmBreakChar; 
      BYTE tmItalic; 
      BYTE tmUnderlined; 
      BYTE tmStruckOut; 
      BYTE tmPitchAndFamily; 
      BYTE tmCharSet; 
    } TEXTMETRIC, *PTEXTMETRIC; 
      

  3.   

    这是一个文本信息结构体
    在gettextmetrics函数里有用
    BOOL GetTextMetrics(
     HDC hdc,
     LPTEXTMETRIC lptm
    ); 
      

  4.   

    TEXTMETRIC tm;
    GetTextMetrics (hdc, &tm) ;
    //不一样吗?
    //不知为和要一个struct point//当然这样也可以
    PTEXTMETRIC tm;
    GetTextMetrics (hdc, tm) ;
      

  5.   

    这些东西都在msdn中,好好练e文,自己看吧!