Print Page | Close Window

How to select tab item to give a message?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=4382
Printed Date: 10 November 2025 at 10:20pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to select tab item to give a message?
Posted By: sevcolor
Subject: How to select tab item to give a message?
Date Posted: 09 June 2006 at 8:05am

I create a CXTPTabControl, I want to select a tab item to give an message e.g. to open "NOTEPAD.exe", How  to do it? Can anyone help me?

Hearty thanks




Replies:
Posted By: Oleg
Date Posted: 10 June 2006 at 9:32am

Hi

So you want to catch event when tab become selected?



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: sevcolor
Date Posted: 10 June 2006 at 11:59pm

Thanks oleg.

I want to open "NOTEPAD.exe",when tab become selected. I am a new user. I can't resolve it ? I wander if CXTPTabControl can do it?Would you like to help me ? Can you give me an examle?

Thanks in advance!



Posted By: Oleg
Date Posted: 12 June 2006 at 8:43am

Check sample Samples\ToolkitPro\TabbedView

add ON_NOTIFY(TCN_SELCHANGE, IDC_TABCONTROL, OnSelectedChanged)
on message map

and

void CTabbedViewView::OnSelectedChanged(NMHDR* pNMHDR, LRESULT* pResult)
{


}



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: sevcolor
Date Posted: 14 July 2006 at 7:14pm
Hearty thanks oleg!
As you say,I have resolved it.
thanks a lot!
 
Sevclor



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net