color of OLE container ??

color of OLE container ??

Post by Stef Mient » Fri, 05 Sep 2003 21:00:01


I've an Tolecontainer, where drop in a word document (but I guess it's
not important whatever I drop in it).
Problem is that the color of the container (when not active) is always
clsilver.
I tried to change both the color property and the brush.color property,
buth neither of them has effect.
The only effect I can see is that if I scroll the olecontainer out of my
form, the color I set flickers in between.

Does anyone has a solution to change the color of the Olecontainer ?

Stef Mientki
 
 
 

1. ole container

2. How to prevent ole container hwnd receive certain messages?

I used CSubclassWnd of Paul DiLascia to subclass(in fact use SetWindowLong
to replace WindowProc) hwnd returned from IOleWindow::GetWindow. In the
WindowProc I prevent it by
LRESULT CShellEmbedding::WindowProc(UINT msg, WPARAM wp, LPARAM lp)
{
if (msg == WM_WINDOWPOSCHANGING)
return 0;
return CSubclassWnd::WindowProc(msg, wp, lp); // Important!!
}
but spy++ still tell me that hwnd of ole get the send WM_WINDOWPOSCHANGING
message and return. So Is it right way to eat message in win32 or ole
container hwnd does special things?

3. Create an OLE/ActiveX Control Container

4. COM / OLE Containers

5. OLE Container

6. Create File out of OLE Container

7. From an OLE Container to a File

8. OLE Container issue

9. MS Access excel-OLE Container Control Resize

10. Hide Word 2007 Ribbon and QAT in OLE Container?

11. PPTX gets corrupt when saving from an OLE container with PowerPoint 2003

12. ole container in .net

13. ole server containers

14. Ole Container control with embedded Excel spreadsheet

15. PPTX gets corrupt when saving from an OLE container with PowerPoint 2003