Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm trying to create an extended label control that will be used within
Excel. It is ATL/WTL and subclasses the CStatic control. My problem is that when the control gets added to a sheet using ActiveSheet.OLEObjects.Add it always seems to appear in design mode - ie. not activated. If I toggle design-mode the control then displays correctly. Having debugged I notice that OnCreate does not get called until I toggle design-mode.. OnDraw does get called but I require a window handle which is not available at this point.. Am I missing some activation property/method or should I be creating my own window when I realise that one does not exist? Thanks! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Creating controls to autofill a form | Excel Discussion (Misc queries) | |||
creating/manipulating form controls placed on a spreadsheet in excel using vba | Excel Programming | |||
creating dynamic controls | Excel Programming | |||
creating controls at runtime | Excel Programming |