Window and Static IconsBlitzMax Forums/BlitzMax GUI Programming/Window and Static Icons
| Ok, there are 2 things I really would like to do:|
1. I would like to be able to set a seperate icon for each window (Like a SetWindowIcon(window, iconimage) kind of thing)
2. I would like to be able to put a static icon in the application area of the window.
Can someone please help me with this?
| maybe this can help you:|
I'd imagine it'd be as simple as using your window's HWND for the TheWindow% parameter in:
Function SetIcon(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_BIG, icon) ? End Function
| Is there a way to implement that into making a static icon on the application area? |
| Pssst! If you are using MaxGUI.Win32MaxGUIEx, the SetGadgetPixmap() command and the GADGETPIXMAP_ICON flag may be just what you need... ;-) Don't tell anyone - it isn't official or supported atm... |
| Ok...just found a problem. When using MaxGUI.Win32MaxGUIEx I get the cool Windows XP/Vista styles. But if I import my icon with Import "icon.o" then I lose the XP/Vista look. How do I fix this? |
| Your answer should be in here:|
Thanks go to Seb as usual and Grisu for being the testing rabbit. ;)
| Or simply use this...|
...to create your object file.
Also, import your object file *before* you import MaxGUI.