CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Aug 2006
    Location
    Bangalore,India
    Posts
    56

    Thumbs up ATL Composite Control not displaying at design time

    Hello gurus ,

    I have created a composite ActiveX (control not using MFC) it has couple of buttons,comboboxes, tree views,etc. I am not able to display this control in Design time. I am using VS2008. I can see the control loading successfully at run time but it does not display at design time. I just see a text "ATL Composite control" on the window. Any one encountered the same problem. Any help appreciated.

    Thanks!

    Sudeep Gangadharan

  2. #2
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    8,234

    Re: ATL Composite Control not displaying at design time

    At "design time" just draw something which suggests the control's contents (a bitmap, for example).
    Ovidiu
    "When in Rome, do as Romans do."
    My latest articles: https://codexpertro.wordpress.com/

  3. #3
    Join Date
    Aug 2006
    Location
    Bangalore,India
    Posts
    56

    Cool Re: ATL Composite Control not displaying at design time

    Many thanks ovidiucucu,

    I have been mulling on this approach but didn proceed bcos i wasnt convinced that this operation is not possible in design time. I had created the same control on C# and the view persisted at the design time. I think there should be some way to work around this problem...

    Thank you again for your interest.

    Best regards,
    Sudeep Gangadharan

  4. #4
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    8,234

    Re: ATL Composite Control not displaying at design time

    It is your choice.
    You have posted in the C++ and WinAPI forum, isn't it?
    Ovidiu
    "When in Rome, do as Romans do."
    My latest articles: https://codexpertro.wordpress.com/

  5. #5
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,620

    Re: ATL Composite Control not displaying at design time

    Any one encountered the same problem.
    This is not a problem. This is the way the resource editor works. It notifies your control about running design time mode.
    I think there should be some way to work around this problem...
    Well, what's your real problem? You need to see the controls layout at design time? Just place them onto a borderless dialog window and make the latter a composit control's child window.
    Best regards,
    Igor

  6. #6
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    8,234

    Re: ATL Composite Control not displaying at design time

    My everytime's dream is a resource editor which can play "Avatar" 3D and full HD.
    Last edited by ovidiucucu; April 6th, 2010 at 03:39 PM.
    Ovidiu
    "When in Rome, do as Romans do."
    My latest articles: https://codexpertro.wordpress.com/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured