Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 3 of 3

Thread: Help.

  1. #1
    Join Date
    Sep 2008
    Posts
    14

    Help.

    Why not work this code?

    Code:
    hWND = Application.GetWndHandle(); 
    Result = DLL.CallFunction("shell32.dll", "ExtractIcon", hWND..",\"".._SystemFolder.."\\shell32.dll\",-1", DLL_RETURN_TYPE_INTEGER, DLL_CALL_STDCALL);
    And is it possible to draw the icon file in the project, with its handle using ExtractIcon?
    __________________________
    Sorry for my English .. translated with Google
    Last edited by Kick; 02-10-2009 at 02:12 PM.

  2. #2
    Join Date
    Sep 2008
    Posts
    14
    Question withdrawn.
    Obtained such a code:
    Code:
    hWND = Application.GetWndHandle();				
    hDC = WinApi.GetDC(hWND);						
    strPathFile = _SystemFolder.."\\shell32.dll";	
    nXPos = 30;	nYPos = 30;							
    for i=1, 10 do									
    	hIcon = DLL.CallFunction("shell32.dll", "ExtractIconA", hWND..",\""..strPathFile.."\","..i, DLL_RETURN_TYPE_INTEGER, DLL_CALL_STDCALL);
    	DLL.CallFunction("user32.dll", "DrawIcon", hDC..","..nXPos..","..nYPos..","..hIcon, DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL);
    	DLL.CallFunction("user32.dll", "DestroyIcon", hIcon, DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL);
    	nYPos = nYPos + 32;
    end
    Is it possible to reduce the size of icons?

  3. #3
    Join Date
    Sep 2008
    Posts
    14
    Issue. After minimize/restore the window icons are not redrawn. How can I fix it?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts