[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  LoadIcon( hInst, cnIcon )-> <hIcon>
------------------------------------------------------------------------------


 PARAMETER:

  <hInst>    identifies the handle of the module that contains the icon 
             to be loaded.    

  <cnIcon>   is the name OR the numeric identifier of the icon to be loaded



 RETURNS:

  <hIcon> is the handle of the loaded icon, or zero if the module contains
  no Icons.


 DESCRIPTION:

  This function loads the icon resource only if it has not been loaded;
  otherwise, it retrieves a handle of the existing resource. 
  An application can use the LoadIcon function to access the predefined
  icons used by Windows. To do this, the application must set the <hInst>
  parameter to NULL and the <cnIcon> parameter to one of the following
  values: 

      IDI_APPLICATION (32512)  Default application icon
      IDI_ASTERISK    (32516)  Asterisk, used in informative messages
      IDI_EXCLAMATION (32515)  Exclamation point, used in warning messages
      IDI_HAND        (32513)  Hand-shaped icon, used in serious warning
                               messages
      IDI_QUESTION    (32514)  Question mark, used in prompting messages 

  It is not necessary to destroy these system icons. An application should
  use the DestroyIcon function to destroy any private icons it loads


 SOURCE:

  SOURCE\WINAPI\ICONS.C



See Also: ExtractIcon DrawIcon DestroyIcon
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson