minimize window to taskbar?
Blitz3D Forums/Blitz3D Beginners Area/minimize window to taskbar?
| ||
hi all. can someone please translate this minimize program to taskbar tray from blitzplus, to blitzbasic? |
| ||
anyone? |
| ||
To minimize the window you only need a userlib declaration. It might be possible to do this with SetWindowPlacement. In B3D hwnd is GetEnv$("AppHwnd") or something like that :). As the second parameter the function wants a pointer to a structure named "WINDOWPLACEMENT". You have to google and then create a bank with the same structure. The declaration in the userlib file may be something like this: SetWindowPlacement(hwnd,WINDOWPLACEMENT*) Then, in Blitz you'd say SetWindowPlacement(int(GetEnv$("AppHwnd")), mybank) In the bank "mybank" you should then be able to set certain veriables for minimizing, displaying etc. Become familar with using USERLIBS in order to use Windows API functions, like minimizing a window or so! It's easy and powerful. http://allapi.mentalis.org/agnet/apiguide.shtml http://msdn.microsoft.com/en-us/library/aa383749%28VS.85%29.aspx Your above code seems like a megaton of code, do you really expect people to read the who stuff? :) As I said, what you need is a single line of code. |