当前位置:首页
开发技术指南» 文章正文
    引言:
 

 

    摘要: 如果仅仅重装win me能否消除密码,但保留注册信息呢? ......
 ·win2kpro与98联网的问题。    »显示摘要«
    摘要: 98可以看到win2k的共享文件夹,但是打开时要密码,但是我没有设密码,已经开放guest权限。 是不是一定要为98建一个用户和密码?如果在机子多的时候,岂不是很麻烦?麻烦各位兄弟提示提示。 不过不要让我装2kserver。server版没有什么问题。 ......


怎么给LPLOGFONT赋值那

包括字体,大小  
  下面的赋值不对,那应该怎么办那?  
  LPLOGFONT   lplf;  
  iFontSize=140;  
  lplf.lfHeight=iFontSize;

NO.1   作者: jiangsheng

LOGFONT   lf;  
  iFontSize=140;  
  lf.lfHeight=iFontSize;  
 

NO.2   作者: i_Fan

用  
  LOGFONT   lf;  
  iFontSize=140;  
  lf.lfHeight=iFontSize;  
  完成后  
  fdg->lplogfont=&lf;  
  是不是就ok了

NO.3   作者: i_Fan

这是一个制作rotated字体的例子片段  
   
  RECT   rc;      
  int   angle;    
  HFONT   hfnt,   hfntPrev;    
  LPSTR   lpszRotate   =   "String   to   be   rotated.";    
     
  /*   Allocate   memory   for   a   LOGFONT   structure.   */    
     
  PLOGFONT   plf   =   (PLOGFONT)   LocalAlloc(LPTR,   sizeof(LOGFONT));    
     
     
  /*   Specify   a   font   typeface   name   and   weight.   */    
     
  lstrcpy(plf->lfFaceName,   "Arial");    
  plf->lfWeight   =   FW_NORMAL;    
     
  /*   Retrieve   the   client-rectangle   dimensions.   */    
     
  GetClientRect(hwnd,   &rc);    
     
  /*    
    *   Set   the   background   mode   to   transparent   for   the    
   
    *   text-output   operation.    
    */    
     
  SetBkMode(hdc,   TRANSPARENT);    
     
  /*    
    *   Draw   the   string   36   times,   rotating   10   degrees    
    *   counter-clockwise   each   time.    
    */    
     
  for   (angle   =   0;   angle   <   3600;   angle   +=   100)   {    
          plf->lfEscapement   =   angle;    
          hfnt   =   CreateFontIndirect(plf);    
          hfntPrev   =   SelectObject(hdc,   hfnt);    
          TextOut(hdc,   rc.right   /   2,   rc.bottom   /   2,    
                  lpszRotate,   lstrlen(lpszRotate));    
          SelectObject(hdc,   hfntPrev);    
          DeleteObject(hfnt);    
   
  }    
     
  /*   Reset   the   background   mode   to   its   default.   */    
     
  SetBkMode(hdc,   OPAQUE);    
     
  /*   Free   the   memory   allocated   for   the   LOGFONT   structure.   */    
     
  LocalFree((LOCALHANDLE)   plf);    
 


 ·md5控件怎么用    »显示摘要«
    摘要: 谁能告诉我md5控件怎么用,给个例子! ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE