is.chris
May 15th, 2006, 11:31 PM
Hi,
I have just tried implementing the ITaskbarList interface
bool Window::ShowInTaskBar( __Bool_ b_Show ){
//************************************************************************************************
//this->i_TaskBar is an ITaskbarList*
bool b_Return = false;
if( ( !this->i_TaskBar ) && ( CoCreateInstance( CLSID_TaskbarList, NUM_0, CLSCTX_LOCAL_SERVER, IID_ITaskbarList, ( LPVOID* ) this->i_TaskBar ) == S_OK ) ){
this->i_TaskBar->HrInit();
}else{
PTR0( this->i_TaskBar );
}
if( this->i_TaskBar ){
if( b_Show ){
this->i_TaskBar->AddTab( this->Handle() );
}else{
this->i_TaskBar->DeleteTab( this->Handle() );
}
}
return b_Return;
}
CoCreateInstance appears to be failing, although i do not think I am doing things right... I have not found a topic showing shell usage only MSDN topics on what is in the shell.
anybody used this interface before that can point me in the right direction?
I don't think I am passing the right data type to the last param of CoCreateInstance
Cheers
I have just tried implementing the ITaskbarList interface
bool Window::ShowInTaskBar( __Bool_ b_Show ){
//************************************************************************************************
//this->i_TaskBar is an ITaskbarList*
bool b_Return = false;
if( ( !this->i_TaskBar ) && ( CoCreateInstance( CLSID_TaskbarList, NUM_0, CLSCTX_LOCAL_SERVER, IID_ITaskbarList, ( LPVOID* ) this->i_TaskBar ) == S_OK ) ){
this->i_TaskBar->HrInit();
}else{
PTR0( this->i_TaskBar );
}
if( this->i_TaskBar ){
if( b_Show ){
this->i_TaskBar->AddTab( this->Handle() );
}else{
this->i_TaskBar->DeleteTab( this->Handle() );
}
}
return b_Return;
}
CoCreateInstance appears to be failing, although i do not think I am doing things right... I have not found a topic showing shell usage only MSDN topics on what is in the shell.
anybody used this interface before that can point me in the right direction?
I don't think I am passing the right data type to the last param of CoCreateInstance
Cheers