Ok, now after a couple of weeks I just must crawl to the cross and admit that I havent got a clue how to create my own small userlibs for Win apis. I recieved help regarding icons in window and taskbar but I just don't know how to implent it in Blitz3D
I've tried so many different things to be able to call those api's in B3D but none of them seems to work.
... soooo dear fellow Blitzers. How do I do it?
This is what I receieved from Grey Alien but he is using BlitzMAX
I understand that I must put a file in the userlib folder to be able to call them and this is what I put there:
obviously it doesn't work...
HELP!
I've tried so many different things to be able to call those api's in B3D but none of them seems to work.
... soooo dear fellow Blitzers. How do I do it?
This is what I receieved from Grey Alien but he is using BlitzMAX
' ----------------------------------------------------------------------------- ' ccSetIcon ' ----------------------------------------------------------------------------- Function ccSetIcon(iconname$, TheWindow%) ?Win32 Local icon=ExtractIconA(TheWindow,iconname,0) Local WM_SETICON = $80 Local ICON_SMALL = 0 Local ICON_BIG = 1 ' sendmessage(TheWindow, WM_SETICON, ICON_SMALL, icon) 'don't need this sendmessage(TheWindow, WM_SETICON, ICON_BIG, icon) ' SetClassLongA(TheWindow,-14,icon)'obsolete as it doesn't work with Windows XP Theme! ? End Function 'call it like this ccSetIcon("test.ico", GetActiveWindow()) and the externs: ?win32 Extern "win32" Function ExtractIconA%(hWnd%,File$z,Index%) Function GetActiveWindow%() Function SendMessage:Int(hWnd:Int,MSG:Int,wParam:Int,lParam:Int) = "SendMessageA@16" End Extern ?
I understand that I must put a file in the userlib folder to be able to call them and this is what I put there:
; Win32.decls ; Is placed in my userlib folder .lib "win32.dll" ExtractIconA%(hWnd%,File$z,Index%) GetActiveWindow%()
obviously it doesn't work...
HELP!