For Programmers: Free Programming Magazines  


Home > Archive > VC Language > January 2006 > PropertySheet within ActiveX Locks up









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author PropertySheet within ActiveX Locks up
google@green-pig.co.uk

2006-01-24, 8:00 am

I have a C++ ActiveX control which contains a multi-tabbed
CPropertySheet.
Whenever I click on any control, the machine locks up.
I have managed to halt execution and it looks like a LBUTTONDOWN
message has cause the code to get stuck in a loop - deep down in the
Windows core.

When I run my control within the ActiveX Text Container, everything
works perfectly.
I also have problems when running the control within a VisualObjects
application environment.

Is there something I need to check in my build options - for the
Control OR the App?

Igor Tandetnik

2006-01-24, 7:07 pm

google@green-pig.co.uk wrote:
> I have a C++ ActiveX control which contains a multi-tabbed
> CPropertySheet.
> Whenever I click on any control, the machine locks up.


See KB Article KB149501 "PRB: Child CPropertySheet Hangs If Focus Is
Switched"
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925


google@green-pig.co.uk

2006-01-25, 7:23 pm

FIXED - Thanks Igor

I found a few references to KG/Q-149501 and implemented the fix.
I have also resolved the problem under VisualObjects - after much
searching of window style flags I noticed that I had missed the
'TabStop' field. Now it works in a C++ and VO host application.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com