Click here to Skip to main content
15,904,339 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Retrieving main thread handle or ID Pin
Tim Deveaux10-Nov-01 3:39
Tim Deveaux10-Nov-01 3:39 
GeneralRe: Retrieving main thread handle or ID Pin
10-Nov-01 5:46
suss10-Nov-01 5:46 
GeneralRe: Retrieving main thread handle or ID Pin
Tim Smith10-Nov-01 6:13
Tim Smith10-Nov-01 6:13 
GeneralRe: Retrieving main thread handle or ID Pin
Tim Deveaux10-Nov-01 7:54
Tim Deveaux10-Nov-01 7:54 
GeneralRe: Retrieving main thread handle or ID Pin
10-Nov-01 10:53
suss10-Nov-01 10:53 
GeneralPass array or single HWND into function Pin
9-Nov-01 7:16
suss9-Nov-01 7:16 
GeneralRe: Pass array or single HWND into function Pin
Tim Smith9-Nov-01 7:44
Tim Smith9-Nov-01 7:44 
GeneralRe: Pass array or single HWND into function Pin
9-Nov-01 7:50
suss9-Nov-01 7:50 
I can show you what the function does in fact:
void TaskbarOp(BOOL Add, BOOL Multiple, const int IfMultipleThenCount, const HWND *pWindows)
{
	CoInitialize(NULL);
	ITaskbarList *pDisp = NULL;
	CoCreateInstance( CLSID_TaskbarList, NULL, CLSCTX_SERVER, IID_ITaskbarList, (LPVOID *) &pDisp );

	if(Multiple)
	{
		for(int i = 0; i < IfMultipleThenCount; i++)
		{
			if(Add)
				pDisp->AddTab( pWindows[i] );
			else
				pDisp->DeleteTab( pWindows[i] );
		}
	}
	else
	{
		if(Add)
				pDisp->AddTab( pWindows );
			else
				pDisp->DeleteTab( pWindows );
	}

	pDisp->Release();
	CoUninitialize();
}


is there something I should change? There are some error at
else
	{
		if(Add)
				pDisp->AddTab( pWindows ); // error
			else
				pDisp->DeleteTab( pWindows ); // error
	}

GeneralRe: Pass array or single HWND into function Pin
Carlos Antollini9-Nov-01 7:57
Carlos Antollini9-Nov-01 7:57 
GeneralRe: Pass array or single HWND into function Pin
9-Nov-01 7:58
suss9-Nov-01 7:58 
GeneralRe: Pass array or single HWND into function Pin
Tim Smith9-Nov-01 8:10
Tim Smith9-Nov-01 8:10 
GeneralThanks!!! Pin
9-Nov-01 8:18
suss9-Nov-01 8:18 
GeneralDestroying / closing windows Pin
ParaSwarm9-Nov-01 6:59
ParaSwarm9-Nov-01 6:59 
GeneralRe: Destroying / closing windows Pin
Carlos Antollini9-Nov-01 7:21
Carlos Antollini9-Nov-01 7:21 
GeneralRe: Destroying / closing windows Pin
Nish Nishant9-Nov-01 8:05
sitebuilderNish Nishant9-Nov-01 8:05 
GeneralRegistry Pin
Deian9-Nov-01 6:44
Deian9-Nov-01 6:44 
GeneralRe: Registry Pin
Carlos Antollini9-Nov-01 7:02
Carlos Antollini9-Nov-01 7:02 
QuestionIs it possible to custom draw the scroll bar in CListCtrl? Pin
RobJones9-Nov-01 3:58
RobJones9-Nov-01 3:58 
GeneralDisable Help button on the "Customize Toolbar" dialog box Pin
9-Nov-01 3:45
suss9-Nov-01 3:45 
GeneralHelp.... Pin
sardinka9-Nov-01 3:42
sardinka9-Nov-01 3:42 
GeneralRe: Help.... Pin
Michael P Butler9-Nov-01 4:06
Michael P Butler9-Nov-01 4:06 
GeneralRe: Help.... Pin
sardinka9-Nov-01 5:21
sardinka9-Nov-01 5:21 
GeneralRe: Help.... Pin
#realJSOP9-Nov-01 5:49
professional#realJSOP9-Nov-01 5:49 
GeneralRe: Help.... Pin
Christian Graus9-Nov-01 8:41
protectorChristian Graus9-Nov-01 8:41 
GeneralRe: Help.... Pin
moliate9-Nov-01 16:21
moliate9-Nov-01 16:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.