Posts: 1,000
Threads: 253
Joined: Feb 2008
TaskbarButton
Quote: /
function action hwnd ;;action: 1 add (only if removed), 2 remove
Deletes or adds (if deleted using this function) taskbar button for window whose handle is hwnd.
So am I to understand that this function will now put a button in the taskbar for a window that was not hidden by this function?
Anyway to get a window registered in the taskbar that was not there before?
Also, is there anyway to change a windows style? Like adding a maximize, minimize, close button to them?
Perhaps could you open a window inside a QM dialog?
Thanks,
Jimmy Vig
Posts: 12,097
Threads: 142
Joined: Dec 2002
Quote:So am I to understand that this function will now put a button in the taskbar for a window that was not hidden by this function?
Anyway to get a window registered in the taskbar that was not there before?
Look here:
Multi-monitor taskbar
It uses another method.
Function TaskbarButton also can be modified to add any window.
Quote:Anyway to get a window registered in the taskbar that was not there before?
Add WS_EX_APPWINDOW extended style. Also it must be visible. Or use ITaskbarList interface, like in my multimonitor taskbar.
Quote:Also, is there anyway to change a windows style? Like adding a maximize, minimize, close button to
SetWinStyle
Quote:Perhaps could you open a window inside a QM dialog?
No.
Posts: 1,000
Threads: 253
Joined: Feb 2008
SetWinStyle just goofs up the window when I try to use it for anything on these windows. Maybe I won't be able to add a minimize and maximize box to them.
Could not get window to show up in taskbar using TaskbarButton.
Used MMT_WinTaskbarAddRemoveButton to show window in taskbar. Window only shows in primary taskbar regardless of monitor in multimonitor system.
Information about the window:
int hwnd=win("Production" "AudioWndClass")
int a=GetWinStyle(win("Production " "AudioWndClass"))
int b=GetWinStyle(win("Production " "AudioWndClass") 1)
int c=GetParent(win("Production " "AudioWndClass"))
int d=GetAncestor(win("Production " "AudioWndClass") 2)
int e=GetWindow(win("Production " "AudioWndClass") GW_OWNER)
out a;;381943808
out b;;256
outw c;;0
outw d;;4589156 AudioWndClass "Production"
outw e;;524504 NexGen Digital "NexGen Audio Control System - 3 XXXX"
Maybe the program is just stange and won't cooperate here. I posted the above information because maybe you'll see something I don't know about.
Really just getting the window to show up in the right taskbar would be all I need done.
Thanks,
jimmy Vig
Posts: 1,000
Threads: 253
Joined: Feb 2008
MMT_IsTaskbarWindow
int ho=GetWindow(hwnd GW_OWNER)
if(ho and ho!=GetDesktopWindow)
Got that...Works great. I can tweak.
Thanks,
jimmy Vig