Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - How to select tab item to give a message?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to select tab item to give a message?

 Post Reply Post Reply
Author
Message
sevcolor View Drop Down
Newbie
Newbie


Joined: 21 May 2006
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote sevcolor Quote  Post ReplyReply Direct Link To This Post Topic: How to select tab item to give a message?
    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

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 10 June 2006 at 9:32am

Hi

So you want to catch event when tab become selected?

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
sevcolor View Drop Down
Newbie
Newbie


Joined: 21 May 2006
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote sevcolor Quote  Post ReplyReply Direct Link To This Post 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!

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
sevcolor View Drop Down
Newbie
Newbie


Joined: 21 May 2006
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote sevcolor Quote  Post ReplyReply Direct Link To This Post Posted: 14 July 2006 at 7:14pm
Hearty thanks oleg!
As you say,I have resolved it.
thanks a lot!
 
Sevclor
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.