I'm using José's CWindow class to create an application. One issue that I'm having is the title bar icon for the window is showing up as plain ole window icon as if I hadn't included an icon at all.
I'm using this statement to add the icon to the program:
#RESOURCE ICON,PROGICON, "DatabaseSearch.ico"
The icon displays properly in Windows File Explorer and also is fine in the Windows Task Bar at bottom of my screen.
Here's the code that I use to create the window:
Originally the code looked like this...both get same result with the title bar icon
Also wondering if anyone has any recommendations for a GOOD free icon editor. Hopefully one that can really scale icons. My icon file starts out large...by the time it gets to the 16x16 size...it's just a blur of pixels.
I'm using this statement to add the icon to the program:
#RESOURCE ICON,PROGICON, "DatabaseSearch.ico"
The icon displays properly in Windows File Explorer and also is fine in the Windows Task Bar at bottom of my screen.
Here's the code that I use to create the window:
Code:
pWindow.CreateWindow(%NULL, "Database Search", 0, 0, 800, 600, _ %WS_OVERLAPPED OR %WS_BORDER OR %WS_DLGFRAME OR %WS_CAPTION OR %WS_SYSMENU OR _ %WS_MINIMIZEBOX OR %WS_MAXIMIZEBOX OR %WS_CLIPSIBLINGS OR %WS_VISIBLE, _ 0, CODEPTR(WindowProc))
Code:
pWindow.CreateWindow(%NULL, "Database Search", 0, 0, 800, 600, 0, 0, CODEPTR(WindowProc))
Comment