12-27-2023, 11:24 PM
taskbar.h (in text forrm):
If worst comes to worst, you can always copy the text above and paste it into a plain text file called "taskbar.h" and put it in your qb64pe folder.
Code: (Select All)
int32 taskbar_height() {
RECT rect;
HWND taskBar = FindWindow("Shell_traywnd", NULL);
if(taskBar && GetWindowRect(taskBar, &rect)) {
return rect.bottom - rect.top;
}
}
int32 taskbar_width() {
RECT rect;
HWND taskBar = FindWindow("Shell_traywnd", NULL);
if (taskBar && GetWindowRect(taskBar, &rect)) {
return rect.right - rect.left;
}
}
int32 taskbar_top() {
RECT rect;
HWND taskBar = FindWindow("Shell_traywnd", NULL);
if (taskBar && GetWindowRect(taskBar, &rect)) {
return rect.top;
}
}
int32 taskbar_left() {
RECT rect;
HWND taskBar = FindWindow("Shell_traywnd", NULL);
if (taskBar && GetWindowRect(taskBar, &rect)) {
return rect.left;
}
}
int32 taskbar_bottom() {
RECT rect;
HWND taskBar = FindWindow("Shell_traywnd", NULL);
if (taskBar && GetWindowRect(taskBar, &rect)) {
return rect.bottom;
}
}
int32 taskbar_right() {
RECT rect;
HWND taskBar = FindWindow("Shell_traywnd", NULL);
if (taskBar && GetWindowRect(taskBar, &rect)) {
return rect.right;
}
}
If worst comes to worst, you can always copy the text above and paste it into a plain text file called "taskbar.h" and put it in your qb64pe folder.