Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

removing a window from the taskbar

  • 13-12-1999 02:36AM
    #1
    Closed Accounts Posts: 40


    quoted from MSDN link below

    "To prevent the window button from being placed on the taskbar, create the unowned window with the WS_EX_TOOLWINDOW extended style. As an alternative, you can create a hidden window and make this hidden window the owner of your visible window. "

    I tried this on my app but it didnt work because im using a dialog, not an actual window. I didnt want to do it the "alternative" way so i delved deeper into MSDN

    Now get yer head around this!!

    MSDN says ITaskbarList is declared in shlobj.h, yet its not in mine!!!
    therefore the following code wont compile.
    ITaskbarList *TaskbarList=NULL;
    
    HRESULT v = CoCreateInstance(CLSID_TaskbarList, NULL, CLSCTX_INPROC_HANDLER ,
    					IID_ITaskbarList, &TaskBarList);
    
    if (TaskbarList->HrInit() == NOERROR)
    		TaskbarList->DeleteTab(GetSafeHwnd());
    

    Does anyone have ITaskBarList declared anywhere on their system?!?!?!
    This baffles me.

    mk:@MSITStore biggrin.gif:\Microsoft%20Visual%20Studio\MSDN\99JUL\1033\Shellcc.chm::/shellcc/Shell/Taskbar.htm

    Ðeclan $hanaghy
    4th Computer Engineering
    University of Limerick
    9637184@student.ul.ie
    www.csn.ul.ie/~dek



Comments

  • Registered Users, Registered Users 2 Posts: 2,494 ✭✭✭kayos


    Ok did a bit of poking around on this not very big into C++ ATM but this is what I found.
    I too couldn't find this interface anywhere on my system. But when I used that handy little tool oleview I found it under interfaces with a guid of {56FDF342-FD6D-11D0-958A-006097C9A090} if that helps.
    Also in MSDN it says this
    When to Implement

    You do not implement ITaskbarList; it is implemented by the shell.

    and that you need Version 4.71 of shell32.dll
    Hope this is of some help.

    Kayos
    so


Advertisement