我是靠谱客的博主 幽默金毛,这篇文章主要介绍RegisterClassEx和RegisterClass,现在分享给大家,希望可以做个参考。

  ATOM   RegisterClassEx(  
      CONST   WNDCLASSEX   *lpwcx     //   address   of   structure   with   class   data  
  );  
  其中WNDCLASSEX声明如下:  
  typedef   struct   _WNDCLASSEX   {    
          UINT         cbSize;    
          UINT         style;    
          WNDPROC   lpfnWndProc;    
          int           cbClsExtra;    
          int           cbWndExtra;    
          HANDLE     hInstance;    
          HICON       hIcon;    
          HCURSOR   hCursor;    
          HBRUSH     hbrBackground;    
          LPCTSTR   lpszMenuName;    
          LPCTSTR   lpszClassName;    
          HICON       hIconSm;    
  }   WNDCLASSEX;    
     
  ///  
  ATOM   RegisterClass(  
      CONST   WNDCLASS   *lpWndClass       //   address   of   structure   with   class    
                                                                //   data  
  );  
  其中WNDCLASS声明如下:  
  typedef   struct   _WNDCLASS   {    
          UINT         style;    
          WNDPROC   lpfnWndProc;    
          int           cbClsExtra;    
          int           cbWndExtra;    
          HANDLE     hInstance;    
          HICON       hIcon;    
          HCURSOR   hCursor;    
          HBRUSH     hbrBackground;    
          LPCTSTR   lpszMenuName;    
          LPCTSTR   lpszClassName;    
  }   WNDCLASS; 

 

 WNDCLASSEX 比 WNDCLASS 结构多一个参数,用来定义窗口的特别样式。

最后

以上就是幽默金毛最近收集整理的关于RegisterClassEx和RegisterClass的全部内容,更多相关RegisterClassEx和RegisterClass内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(108)

评论列表共有 0 条评论

立即
投稿
返回
顶部