Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7745119
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T09:56:00+00:00 2026-06-01T09:56:00+00:00

Without using the Graphic Resources how can I create and build up a CTabCtrl?

  • 0

Without using the “Graphic Resources” how can I create and build up a CTabCtrl?

What I have so far creates it, but I don’t know the MESSAGE_MAP for it. Also how to create different views for each “tab” as apposed to displaying/hiding controls depending upon what tab was selected?

thx

    CTabCtrl *tabMain = new CTabCtrl();
    tabMain->Create(WS_CHILD|WS_VISIBLE|TCS_TABS|TCS_SINGLELINE,CRect(700,100,1000,600),this,5);

    TC_ITEM ti;
    ti.mask = TCIF_TEXT;
    ti.pszText = _T("Tab0");
    tabMain->InsertItem(0,&ti);
    ti.pszText = _T("Tab1");
    tabMain->InsertItem(1,&ti);
    ti.pszText = _T("Tab2");
    tabMain->InsertItem(2,&ti);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T09:56:02+00:00Added an answer on June 1, 2026 at 9:56 am

    The last parameter you pass to the Create function is the Id which you should use in the MESSAGE_MAP .

    For eg:

    ON_NOTIFY(TCN_SELCHANGE, 5 , OnSelchangeTab)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Without using super.paintComponent(g); can i still clear my Jpanel or Jframe Screen? I have
Could someone provide an example for drawing graphics without using Windows Forms? I have
Is it possible without using exponentiation to have a set of numbers that when
I have built a horizontal scrolling website. I don't really know much about Java
I'm using Google closure to create a simple interactive graphic in HTML/JS to be
How can I create a 256x256 color space image using graphics draw? Currently I'm
I need to draw on my uiview without using the drawrect method but i
I was wondering, without using images, how can I show a diagram in an
Without using Flash, how can I make a game with fair graphics performance using
Without using jQuery, what is the best way to limit text entry of a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.