CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2001
    Location
    germany
    Posts
    772

    Dialog in CTabCtrl

    Hi guys,

    I'm pretty new to Tabs. I have created an application (Dialog) which is supposed to have a Tab ctrl containing various controls like buttons, dropdown lists, etc. Now, I have faced the problem that it doesn't seem to be that easy to place the controls onto the different tabs. They can't be seen unless they are created before the tab control. Also, they would overlap if the position of two controls in different tabs is the same. So, I have been thinking of creating different dialog classes for each tab, put the controls in there and attach the dialogs (Child, no title) to the different tabs.
    So, now my questions:
    1) How to make one of these dialogs a child of one tab?
    2) How can I reposition the dialog so it fits onto the tab?
    3) Any better idea of implementing this?

    Thanks for your help

    radu
    Please rate if it helps!

    * The second mouse gets the cheese.

    * Birthdays are good for you. The more you have, the longer you live.

    * Always keep your words soft and sweet, just in case you have to eat them.

    * Always read stuff that will make you look good if you die in the middle of it.

  2. #2
    Join Date
    Apr 2005
    Location
    china
    Posts
    10

    Re: Dialog in CTabCtrl

    hi radu,

    There are some samples ,perhaps can help you.

    http://www.codeproject.com/tabctrl/SimpleTab.asp



    tango

  3. #3
    Join Date
    Oct 2006
    Location
    Timisoara, Romania
    Posts
    84

    Re: Dialog in CTabCtrl

    You should read this.

    Is very simple to use and is exact what you need.
    http://msdn.microsoft.com/library/de...pertysheet.asp

  4. #4
    Join Date
    Aug 2001
    Location
    germany
    Posts
    772

    Re: Dialog in CTabCtrl

    thanks alot guys, you helped me alot.

    have a nice day

    radu
    Please rate if it helps!

    * The second mouse gets the cheese.

    * Birthdays are good for you. The more you have, the longer you live.

    * Always keep your words soft and sweet, just in case you have to eat them.

    * Always read stuff that will make you look good if you die in the middle of it.

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