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

    摘要: 有一个asp.net项目,是在ws2003操作系统下开发的,由于开发的时候使用的都是新建的本地站点,因此每一个.aspx文件内的连接都是类似“image/top.gif”这样的相对路径。后来改用winxp操作系统开发,由于不用虚拟站点改用虚拟目录,原来.aspx文件内的那些连接都要加上“../”改为类似“../image/top.gif”这样的相对路径才能有效。 如果全部改动工作量太大,请......
    摘要: 代码是这样的 hresult cgrid::ondraw(atl_drawinfo& di) { movetoex(di.hdcdraw,0,0,null); lineto(di.hdcdraw,100,100); return s_ok; } ......


谁知道API函数LOADIMAGE里面的常数值是多少

本人在用LOADIMAGE函数时,发现里面的LR_系列常数在API浏览器里面查不到,我在网上下载了最新的API函数浏览器,里面也没有该系列的常数值可查,请问那位有用到过该函数的,里面的常数值分别是多少,本人感激不禁  
  具体常数参数:  
  LR_DEFAULTCOLOR,LR_CREATEDIBSECTION,LR_LOADREALSIZE,LR_DEFAULTSIZE,LR_LOADFROMFILE,LR_LOADMAP3DCOLORS,LR_MONOCHROME,LR_SHARED,LR_LOADTRANSPARENT

NO.1   作者: WM_JAWIN

Private   Const   LR_COLOR   As   Long   =   &H2  
  Private   Const   LR_COPYDELETEORG   As   Long   =   &H8  
  Private   Const   LR_COPYFROMRESOURCE   As   Long   =   &H4000  
  Private   Const   LR_COPYRETURNORG   As   Long   =   &H4  
  Private   Const   LR_CREATEDIBSECTION   As   Long   =   &H2000  
  Private   Const   LR_DEFAULTCOLOR   As   Long   =   &H0  
  Private   Const   LR_DEFAULTSIZE   As   Long   =   &H40  
  Private   Const   LR_LOADFROMFILE   As   Long   =   &H10  
  Private   Const   LR_LOADMAP3DCOLORS   As   Long   =   &H1000  
  Private   Const   LR_LOADTRANSPARENT   As   Long   =   &H20  
  Private   Const   LR_MONOCHROME   As   Long   =   &H1  
  Private   Const   LR_SHARED   As   Long   =   &H8000  
  Private   Const   LR_VGACOLOR   As   Long   =   &H80  
 

NO.2   作者: weiym

The   LoadImage   function   loads   an   icon,   cursor,   animated   cursor,   or   bitmap.  
   
  Syntax  
   
  HANDLE   LoadImage(                     HINSTANCE   hinst,  
          LPCTSTR   lpszName,  
          UINT   uType,  
          int   cxDesired,  
          int   cyDesired,  
          UINT   fuLoad  
  );  
  Parameters  
   
  hinst  
  [in]   Handle   to   an   instance   of   the   module   that   contains   the   image   to   be   loaded.   To   load   an   OEM   image,   set   this   parameter   to   zero.    
  lpszName  
  [in]    
  Specifies   the   image   to   load.   If   the   hinst   parameter   is   non-NULL   and   the   fuLoad   parameter   omits   LR_LOADFROMFILE,   lpszName   specifies   the   image   resource   in   the   hinst   module.   If   the   image   resource   is   to   be   loaded   by   name,   the   lpszName   parameter   is   a   pointer   to   a   null-terminated   string   that   contains   the   name   of   the   image   resource.   If   the   image   resource   is   to   be   loaded   by   ordinal,   use   the   MAKEINTRESOURCE   macro   to   convert   the   image   ordinal   into   a   form   that   can   be   passed   to   the   LoadImage   function.  
   
  If   the   hinst   parameter   is   NULL   and   the   fuLoad   parameter   omits   the   LR_LOADFROMFILE   value,   the   lpszName   specifies   the   OEM   image   to   load.   The   OEM   image   identifiers   are   defined   in   Winuser.h   and   have   the   following   prefixes.  
   
  OBM_   OEM   bitmaps    
  OIC_   OEM   icons    
  OCR_   OEM   cursors    
   
  To   pass   these   constants   to   the   LoadImage   function,   use   the   MAKEINTRESOURCE   macro.   For   example,   to   load   the   OCR_NORMAL   cursor,   pass   MAKEINTRESOURCE(OCR_NORMAL)   as   the   lpszName   parameter   and   NULL   as   the   hinst   parameter.  
   
  If   the   fuLoad   parameter   includes   the   LR_LOADFROMFILE   value,   lpszName   is   the   name   of   the   file   that   contains   the   image.  
   
  uType  
  [in]   Specifies   the   type   of   image   to   be   loaded.   This   parameter   can   be   one   of   the   following   values.    
  IMAGE_BITMAP  
  Loads   a   bitmap.  
  IMAGE_CURSOR  
  Loads   a   cursor.  
  IMAGE_ICON  
  Loads   an   icon.  
  cxDesired  
  [in]   Specifies   the   width,   in   pixels,   of   the   icon   or   cursor.   If   this   parameter   is   zero   and   the   fuLoad   parameter   is   LR_DEFAULTSIZE,   the   function   uses   the   SM_CXICON   or   SM_CXCURSOR   system   metric   value   to   set   the   width.   If   this   parameter   is   zero   and   LR_DEFAULTSIZE   is   not   used,   the   function   uses   the   actual   resource   width.    
  cyDesired  
  [in]   Specifies   the   height,   in   pixels,   of   the   icon   or   cursor.   If   this   parameter   is   zero   and   the   fuLoad   parameter   is   LR_DEFAULTSIZE,   the   function   uses   the   SM_CYICON   or   SM_CYCURSOR   system   metric   value   to   set   the   height.   If   this   parameter   is   zero   and   LR_DEFAULTSIZE   is   not   used,   the   function   uses   the   actual   resource   height.    
  fuLoad  
  [in]   This   parameter   can   be   one   or   more   of   the   following   values.    
  LR_DEFAULTCOLOR  
  The   default   flag;   it   does   nothing.   All   it   means   is   "not   LR_MONOCHROME".  
  LR_CREATEDIBSECTION  
  When   the   uType   parameter   specifies   IMAGE_BITMAP,   causes   the   function   to   return   a   DIB   section   bitmap   rather   than   a   compatible   bitmap.   This   flag   is   useful   for   loading   a   bitmap   without   mapping   it   to   the   colors   of   the   display   device.  
  LR_DEFAULTSIZE  
  Uses   the   width   or   height   specified   by   the   system   metric   values   for   cursors   or   icons,   if   the   cxDesired   or   cyDesired   values   are   set   to   zero.   If   this   flag   is   not   specified   and   cxDesired   and   cyDesired   are   set   to   zero,   the   function   uses   the   actual   resource   size.   If   the   resource   contains   multiple   images,   the   function   uses   the   size   of   the   first   image.    
  LR_LOADFROMFILE  
  Loads   the   image   from   the   file   specified   by   the   lpszName   parameter.   If   this   flag   is   not   specified,   lpszName   is   the   name   of   the   resource.  
  LR_LOADMAP3DCOLORS  
  Searches   the   color   table   for   the   image   and   replaces   the   following   shades   of   gray   with   the   corresponding   3-D   color:   Color   Replaced   with    
  Dk   Gray,   RGB(128,128,128)   COLOR_3DSHADOW    
  Gray,   RGB(192,192,192)   COLOR_3DFACE    
  Lt   Gray,   RGB(223,223,223)   COLOR_3DLIGHT    
  Do   not   use   this   option   if   you   are   loading   a   bitmap   with   a   color   depth   greater   than   8bpp.    
  LR_LOADTRANSPARENT  
  Retrieves   the   color   value   of   the   first   pixel   in   the   image   and   replaces   the   corresponding   entry   in   the   color   table   with   the   default   window   color   (COLOR_WINDOW).   All   pixels   in   the   image   that   use   that   entry   become   the   default   window   color.   This   value   applies   only   to   images   that   have   corresponding   color   tables.    
  Do   not   use   this   option   if   you   are   loading   a   bitmap   with   a   color   depth   greater   than   8bpp.  
   
  If   fuLoad   includes   both   the   LR_LOADTRANSPARENT   and   LR_LOADMAP3DCOLORS   values,   LRLOADTRANSPARENT   takes   precedence.   However,   the   color   table   entry   is   replaced   with   COLOR_3DFACE   rather   than   COLOR_WINDOW.  
   
  LR_MONOCHROME  
  Loads   the   image   in   black   and   white.  
  LR_SHARED  
  Shares   the   image   handle   if   the   image   is   loaded   multiple   times.   If   LR_SHARED   is   not   set,   a   second   call   to   LoadImage   for   the   same   resource   will   load   the   image   again   and   return   a   different   handle.    
  When   you   use   this   flag,   the   system   will   destroy   the   resource   when   it   is   no   longer   needed.    
   
  Do   not   use   LR_SHARED   for   images   that   have   non-standard   sizes,   that   may   change   after   loading,   or   that   are   loaded   from   a   file.  
   
  When   loading   a   system   icon   or   cursor,   you   must   use   LR_SHARED   or   the   function   will   fail   to   load   the   resource.  
   
  Windows   95/98/Me:   The   function   finds   the   first   image   with   the   requested   resource   name   in   the   cache,   regardless   of   the   size   requested.  
   
  LR_VGACOLOR  
  Uses   true   VGA   colors.  
  Return   Value  
   
  If   the   function   succeeds,   the   return   value   is   the   handle   of   the   newly   loaded   image.  
   
  If   the   function   fails,   the   return   value   is   NULL.   To   get   extended   error   information,   call   .  
   
 


    摘要: 我换了块新硬盘,把原来的xp系统克隆了上去。 装好后,启动过程正常。 到了出现登陆窗口时,输入用户名、口令后,出现“正在登陆”。过了一会后,发现变成了“正在注销”,然后又返回登陆窗口。 启动后进入安全模式也是一样,用administrator和我自己的用户都是一样。 请教各位大虾,该如何解决啊? ......
» 本期热门文章:

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