Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Creating ATL controls for Excel..

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating controls to autofill a form wepstech Excel Discussion (Misc queries) 2 February 23rd 07 01:00 PM
creating/manipulating form controls placed on a spreadsheet in excel using vba [email protected] Excel Programming 2 August 15th 05 02:07 AM
creating dynamic controls monika Excel Programming 0 April 1st 04 01:56 AM
creating controls at runtime defj Excel Programming 2 December 2nd 03 07:14 AM


All times are GMT +1. The time now is 12:19 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"