CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 11 of 11
  1. #1
    Join Date
    Feb 2011
    Posts
    5

    Exclamation [REQUEST] TabControl Sample Code (Visual C++, Win32, Win32 Project) with Tutorial on

    Title says it all. After all my searching I have not been able to find a decent tutorial or sample code that will teach me how to implement and customize a TabControl function in a Visual C++, Win32, Win32 Project environment. A link or download link to this would greatly be appreciated. Please and thank you.

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: [REQUEST] TabControl Sample Code (Visual C++, Win32, Win32 Project) with Tutorial

    Didn't you search MSDN?
    Have a look at Using Tab Controls (Win32)
    Using CTabCtrl (MFC)
    Using Property Sheets in Your Application (MFC)
    Victor Nijegorodov

  3. #3
    Join Date
    Feb 2011
    Posts
    5

    Exclamation Re: [REQUEST] TabControl Sample Code (Visual C++, Win32, Win32 Project) with Tutorial

    Quote Originally Posted by VictorN View Post
    Didn't you search MSDN?
    Have a look at Using Tab Controls (Win32)
    Using CTabCtrl (MFC)
    Using Property Sheets in Your Application (MFC)
    I did see your first link already (I don't use MFC so I didn't bother checking the other 2). MSDN doesn't give any tutorials on how to customize of even where to place their sample codes. Win32 Projects have header, rc, and cpp files. It doesn't say where to put their code, but either way if I don't know how to customize it then it doesn't matter because it will be of no use to me.

  4. #4
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: [REQUEST] TabControl Sample Code (Visual C++, Win32, Win32 Project) with Tutorial

    1. Define "customize".
    2. Did you ever work with a Win32 dialog application having some other (non-tab) controls?
    Victor Nijegorodov

  5. #5
    Join Date
    Feb 2011
    Posts
    5

    Re: [REQUEST] TabControl Sample Code (Visual C++, Win32, Win32 Project) with Tutorial

    When I say customize, I mean that if you can link me to a sample code then all I would need to do is paste them into my code and edit values here and there. And yes, I have worked with a few Win32 apps before, but never needed to add a TabControl.

  6. #6
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: [REQUEST] TabControl Sample Code (Visual C++, Win32, Win32 Project) with Tutorial

    Quote Originally Posted by nebulakd View Post
    When I say customize, I mean that if you can link me to a sample code then all I would need to do is paste them into my code and edit values here and there...
    No, sorry! It's your job to adapt the Microsoft sample code to your needs.
    Well, you could make your life much easier if you used MFC.
    Victor Nijegorodov

  7. #7
    Join Date
    Feb 2011
    Posts
    5

    Re: [REQUEST] TabControl Sample Code (Visual C++, Win32, Win32 Project) with Tutorial

    Well would you mind linking me to a tutorial on how to do this?

  8. #8
    Join Date
    Feb 2011
    Posts
    5

    Re: [REQUEST] TabControl Sample Code (Visual C++, Win32, Win32 Project) with Tutorial

    I basically just need a simple Sample Source code that has a TabControl in a DialogBox, a few tab pages, and stuff in each tab (doesn't matter how much stuff). Then I can read over the code and figure out how it works. The example also needs to be a Visual C++, Win32, Project, not just a single C++ file. It needs to have a header, rc (Resource), and cpp (Source).

  9. #9
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: [REQUEST] TabControl Sample Code (Visual C++, Win32, Win32 Project) with Tutorial

    Sorry, it's all up to you to add what you mean to be missed in this sample!
    Victor Nijegorodov

  10. #10
    Join Date
    Apr 2007
    Posts
    162

    Re: [REQUEST] TabControl Sample Code (Visual C++, Win32, Win32 Project) with Tutorial


  11. #11
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: [REQUEST] TabControl Sample Code (Visual C++, Win32, Win32 Project) with Tutorial

    Quote Originally Posted by zapper222 View Post
    It is MFC while OP needs plain Win32 code sample.
    Victor Nijegorodov

Tags for this Thread

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