Click here to Skip to main content
15,891,733 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
QuestionPowerpoint Addin Using ATL (How do I deal with Events?) Pin
kalukaley10-Dec-08 8:14
kalukaley10-Dec-08 8:14 
QuestionHow to search elements in vector Pin
krishnakumartm10-Dec-08 0:12
krishnakumartm10-Dec-08 0:12 
AnswerRe: How to search elements in vector Pin
Michael Dunn10-Dec-08 9:22
sitebuilderMichael Dunn10-Dec-08 9:22 
GeneralRe: How to search elements in vector Pin
krishnakumartm11-Dec-08 4:09
krishnakumartm11-Dec-08 4:09 
QuestionBHO question: context menu item with "dynamic" title Pin
Dmitry Khudorozhkov9-Dec-08 14:55
Dmitry Khudorozhkov9-Dec-08 14:55 
QuestionRe: BHO question: context menu item with "dynamic" title Pin
led mike10-Dec-08 4:51
led mike10-Dec-08 4:51 
QuestionControl being created with a valid DC but no window until a refresh is made Pin
TClarke9-Dec-08 0:06
TClarke9-Dec-08 0:06 
AnswerFixed it Pin
TClarke9-Dec-08 1:21
TClarke9-Dec-08 1:21 
Added the following code and fixed the problem:

// this is derived from CComControl
	STDMETHOD(SetClientSite)(IOleClientSite *pClientSite)
	{
		if (pClientSite)
		{
			RECT rc = {0,0,0,0};
			// Don't have access to the container's window so just use the
			// desktop.  Window will be resized correctly during in-place
			// activation.
			HWND hWnd = CreateControlWindow(::GetDesktopWindow(), rc);
			_ASSERT (hWnd);
		}
		return IOleObjectImpl<cofficex>::SetClientSite (pClientSite);
	}

	HRESULT InPlaceActivate(LONG iVerb, const RECT* prcPosRect)
	{

		// Get the container's window.
		_ASSERT (m_spClientSite);
		LPOLEINPLACESITE pInPlaceSite = NULL;
		HRESULT hr = m_spClientSite->QueryInterface(IID_IOleInPlaceSite,
			(void       **)&pInPlaceSite);
		_ASSERT (SUCCEEDED (hr) && pInPlaceSite);
		HWND hParent = NULL;
		hr = pInPlaceSite->GetWindow (&hParent);
		_ASSERT (SUCCEEDED (hr) && hParent);
		pInPlaceSite->Release ();
		// Set container window as our parent window
		SetParent (hParent);
		return CComControlBase::InPlaceActivate(iVerb, prcPosRect);
	}
</cofficex>


Cheers
Tom

Philosophy: The art of never getting beyond the concept of life.
Religion: Morality taking credit for the work of luck.

Questionwin32 version of rand() ? Pin
Member 56966976-Dec-08 4:29
Member 56966976-Dec-08 4:29 
AnswerRe: win32 version of rand() ? Pin
Michael Dunn7-Dec-08 20:34
sitebuilderMichael Dunn7-Dec-08 20:34 
QuestionHow to use the Aggregate COM object in client application Pin
KASR14-Dec-08 23:28
KASR14-Dec-08 23:28 
QuestionHow to create composite control Pin
KASR12-Dec-08 18:57
KASR12-Dec-08 18:57 
AnswerRe: How to create composite control Pin
Stuart Dootson2-Dec-08 22:12
professionalStuart Dootson2-Dec-08 22:12 
GeneralRe: How to create composite control Pin
KASR13-Dec-08 0:30
KASR13-Dec-08 0:30 
QuestionGetting to Parent frame window from view Pin
rajas30-Nov-08 19:31
rajas30-Nov-08 19:31 
AnswerRe: Getting to Parent frame window from view Pin
Michael Dunn5-Dec-08 15:38
sitebuilderMichael Dunn5-Dec-08 15:38 
GeneralRe: Getting to Parent frame window from view Pin
rajas7-Dec-08 6:40
rajas7-Dec-08 6:40 
GeneralRe: Getting to Parent frame window from view Pin
Michael Dunn7-Dec-08 20:34
sitebuilderMichael Dunn7-Dec-08 20:34 
QuestionChanges in ATL Headers to make it DEP compatible on Win Vista Pin
dolly25-Nov-08 1:38
dolly25-Nov-08 1:38 
AnswerRe: Changes in ATL Headers to make it DEP compatible on Win Vista Pin
Jörgen Sigvardsson5-Dec-08 23:30
Jörgen Sigvardsson5-Dec-08 23:30 
QuestionGood oppotunity! ! ! Pin
pandapam24-Nov-08 15:50
pandapam24-Nov-08 15:50 
AnswerRe: Good oppotunity! ! ! Pin
King_jinjing2-Dec-08 23:25
King_jinjing2-Dec-08 23:25 
QuestionHow to load BHO DLL only with Window Explorer [modified] Pin
sweetier20-Nov-08 2:14
sweetier20-Nov-08 2:14 
AnswerRe: How to load BHO DLL only with Window Explorer Pin
cdpc25-Nov-08 21:05
cdpc25-Nov-08 21:05 
GeneralRe: How to load BHO DLL only with Window Explorer Pin
rhmitul5-Jan-12 4:58
rhmitul5-Jan-12 4:58 

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.