I created a function to add icon to my window's titlebar:
It used to work, but now I can't get icon loaded. Can anyone tell me what could be wrong with it?
Function AppIcon(gadget%, iconfile$) Local hwnd% = QueryObject(gadget%, 1) Local icon% = api_LoadIcon(hwnd%, iconfile$) api_SetClassLong hwnd, -14, icon End Function
It used to work, but now I can't get icon loaded. Can anyone tell me what could be wrong with it?