|
-
Nov 5th, 2001, 08:41 PM
#1
Thread Starter
Frenzied Member
Adding tabs to my tab control
doing this doesn't work.....niether work
SendMessage(Tab, TCM_INSERTITEM, 1, (LPARAM) "Test");
SendMessage(Tab, TCM_SETITEM, 1, (LPARAM) "TEST");
what is the correct way to add tabs (my control is called Tab)
-
Nov 5th, 2001, 10:02 PM
#2
PowerPoster
Is "Tab" declared as "HWND" and is it a handle to the tab when you ceate the tab control like
Tab = CreateWindow(...);
-
Nov 6th, 2001, 06:27 AM
#3
Abdul is saying that the variable tab has to be
HWND tab;
and actually be the handle to the tab control.
-
Nov 6th, 2001, 09:40 AM
#4
if it's not, but rather a #define, you need to call GetDlgItem(parentHWnd, Tab); to get the hwnd.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Nov 6th, 2001, 04:00 PM
#5
Thread Starter
Frenzied Member
I've already decalred it......thats not my problem
I have the control on my form...I was able to add some tabs, now how do I put text into the tabs
-
Nov 7th, 2001, 05:30 AM
#6
the LPARAM of both TCM_INSERTITEM and TCM_SETITEM must be a pointer to a TCITEM struct. There is a member to set the item text.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|